I tried a few different approaches, in the end I went with something that has a simple implementation and doesn't try to cleverly reuse labels that sometimes already exist in the right places.
I found PR22553 while writing the tests for this.
Paths
| Differential D7575
[ms] Implement codegen for __leave. ClosedPublic Authored by thakis on Feb 11 2015, 5:14 PM.
Details
Summary I tried a few different approaches, in the end I went with something that has a simple implementation and doesn't try to cleverly reuse labels that sometimes already exist in the right places. I found PR22553 while writing the tests for this.
Diff Detail Event Timelinernk edited edge metadata. Comment Actionslgtm Thanks!
This revision is now accepted and ready to land.Feb 12 2015, 2:42 PM
Revision Contents
Diff 19798 lib/CodeGen/CGException.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGen/exceptions-seh-leave.c
|
LLVM tends to elide these braces. *shrug*