This is an archive of the discontinued LLVM Phabricator instance.

Fix ARM EHABI when function has landingpad and nounwind.
ClosedPublic

Authored by logan on May 13 2014, 12:43 PM.

Details

Reviewers
logan
asl
Summary

If the function has the landingpad instruction, then the
handlerdata should be emitted even if the function has
nouwnind attribute. Otherwise, following code will not
work:

void test1() noexcept {

try {
  throw_exception();
} catch (...) {
}

}

Diff Detail

Event Timeline

logan updated this revision to Diff 9360.May 13 2014, 12:43 PM
logan retitled this revision from to Fix ARM EHABI when function has landingpad and nounwind..
logan updated this object.
logan edited the test plan for this revision. (Show Details)
logan added a reviewer: asl.
logan added a subscriber: Unknown Object (MLST).

Hi Logan,

Good catch. LGTM.

--renato

logan accepted this revision.May 14 2014, 9:47 AM
logan added a reviewer: logan.
This revision is now accepted and ready to land.May 14 2014, 9:47 AM
logan closed this revision.May 14 2014, 9:47 AM

Thanks for the review. Committed as rL208791.