[PATCH] D12743: [CodeGen] Teach SimplifyPersonality about the updated LandingPadInst
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 9 20:36:09 PDT 2015
rjmccall added inline comments.
================
Comment at: lib/CodeGen/CGException.cpp:276
@@ +275,3 @@
+ llvm::Function *F = dyn_cast<llvm::Function>(U);
+ if (!U) return false;
+
----------------
if (!F)
You should test this by adding an uncommon use of the personality function. Just declare it as a global function (the type doesn't really matter) and take its address somewhere.
http://reviews.llvm.org/D12743
More information about the cfe-commits
mailing list