[PATCH] D11041: New EH representation for MSVC compatibility

Joseph Tremoulet jotrem at microsoft.com
Thu Jul 9 18:04:22 PDT 2015


JosephTremoulet added inline comments.

================
Comment at: lib/IR/Verifier.cpp:2864-2866
@@ +2863,5 @@
+  Instruction *I = UnwindDest->getFirstNonPHI();
+  Assert(I->isEHBlock() && !isa<LandingPadInst>(I),
+         "CatchBlockInst must unwind to an EH block which is not a landingpad.",
+         &CBI);
+
----------------
The lang ref says catchblock must unwind to catchblock or catchendblock, but the check here is more permissive (allows cleanupblock and terminateblock).


http://reviews.llvm.org/D11041







More information about the llvm-commits mailing list