This is an archive of the discontinued LLVM Phabricator instance.

Implement CFG construction for __finally.
Needs ReviewPublic

Authored by thakis on Aug 23 2017, 6:34 PM.

Details

Reviewers
rnk
Summary

This completes CFG construction for SEH AST nodes.

Also tweak test g3 to explicitly check that __leave in an __except leaves the outer __try.

Diff Detail

Event Timeline

thakis created this revision.Aug 23 2017, 6:34 PM
rnk edited edge metadata.Aug 24 2017, 10:02 AM

Re: jumps out of try, I wonder if you can tie finally into whatever the CFG does for C++ destructors.

test/Sema/warn-unreachable-ms.c
49

Nice. Would any noreteurn call work here to eliminate the re-run and ifdef?