[PATCH] Use WinEHPrepare to outline SEH finally blocks
Andy Kaylor
andrew.kaylor at intel.com
Thu Mar 19 14:46:40 PDT 2015
I see just one problem with this.
REPOSITORY
rL LLVM
================
Comment at: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp:1194
@@ +1193,3 @@
+ // Once we reach a catch-all, don't expect to hit a resume instruction.
+ BB = nullptr;
+ break;
----------------
This is wrong for the C++ EH case, which can have cleanup code to be executed after a catch-all handler. Setting BB to NULL will prevent use from finding the cleanup in that scenario.
http://reviews.llvm.org/D8370
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list