This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Don't copy noreturn attr to invokes
ClosedPublic

Authored by aheejin on Jan 26 2022, 11:24 AM.

Details

Summary

When we create an invoke wrapper call, if the original call instruction
has a noreturn attribute, we shouldn't copy it, because we expect
invoke wrapper calls to return. This generated incorrect free call
before an invoke wrapper call that calls __cxa_throw, because
__cxa_throw has noreturn attribute.

Diff Detail

Event Timeline

aheejin created this revision.Jan 26 2022, 11:24 AM
aheejin requested review of this revision.Jan 26 2022, 11:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2022, 11:24 AM
aheejin updated this revision to Diff 403368.Jan 26 2022, 12:14 PM

Remove a blank line

dschuff accepted this revision.Jan 26 2022, 2:06 PM
This revision is now accepted and ready to land.Jan 26 2022, 2:06 PM
aheejin edited the summary of this revision. (Show Details)Jan 26 2022, 2:36 PM
This revision was landed with ongoing or failed builds.Jan 27 2022, 9:05 PM
This revision was automatically updated to reflect the committed changes.