[PATCH] D12979: Avoid inlining in exception handling context

hfinkel@anl.gov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 16:08:11 PDT 2015


hfinkel added a subscriber: hfinkel.

================
Comment at: lib/Transforms/IPO/PruneEH.cpp:326
@@ +325,3 @@
+    for (User *CallU : EHAllocCall->users()) {
+      BitCastInst *BCInst = dyn_cast<BitCastInst>(CallU);
+      if (!BCInst)
----------------
There's no need to require the bitcast here. What if you actually want an i8* as the exception type? You should just call stripPointerCasts instead.



http://reviews.llvm.org/D12979





More information about the llvm-commits mailing list