[llvm-commits] [llvm] r79262 - /llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp

Daniel Dunbar daniel at zuster.org
Mon Aug 17 11:41:42 PDT 2009


Author: ddunbar
Date: Mon Aug 17 13:41:42 2009
New Revision: 79262

URL: http://llvm.org/viewvc/llvm-project?rev=79262&view=rev
Log:
Fix build warning.

Modified:
    llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp?rev=79262&r1=79261&r2=79262&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp Mon Aug 17 13:41:42 2009
@@ -499,7 +499,7 @@
         if (I == BB->begin()) continue;
         if (CallInst *CI = dyn_cast<CallInst>(--I)) {
           if (CI->getCalledFunction() == ResumeFn) {
-            Value *NegativeOne = ConstantInt::get(Int32Ty, -1);
+            Value *NegativeOne = Constant::getAllOnesValue(Int32Ty);
             new StoreInst(NegativeOne, CallSite, true, I);  // volatile
           }
         }





More information about the llvm-commits mailing list