This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix WebAssemblyOptimizeReturned after r300367
ClosedPublic

Authored by jgravelle-google on Apr 17 2017, 2:02 PM.

Details

Summary

Refactoring changed paramHasAttr(1 + i) to paramHasAttr(0), fix that to
paramHasAttr(i).
Add more tests to WebAssemblyOptimizeReturned that catch that
regression.

Diff Detail

Repository
rL LLVM

Event Timeline

dschuff accepted this revision.Apr 17 2017, 2:07 PM
This revision is now accepted and ready to land.Apr 17 2017, 2:07 PM
This revision was automatically updated to reflect the committed changes.
rnk added a subscriber: rnk.Apr 17 2017, 3:55 PM

Oops. I think I confused 'sret' and 'returned' and figured it could only appear on the first argument.

no worries, I'm always happy for more opportunities to improve our regression tests :D