[PATCH] Fix for crash during SjLj preparation step

Bill Wendling isanbard at gmail.com
Wed Jul 9 15:44:31 PDT 2014


================
Comment at: lib/CodeGen/SjLjEHPrepare.cpp:275
@@ +274,3 @@
+
+        Instruction *LI = new LoadInst(NullValue, AI->getName() + ".null", AfterAllocaInsPt);
+        Value *TrueValue = ConstantInt::getTrue(F.getContext());
----------------
You don't need to do this. Just use the 'null' value directly. :-)

http://reviews.llvm.org/D4256






More information about the llvm-commits mailing list