summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-17 18:41:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-17 18:41:42 +0000
commitf9bdf988a277a9a81ad827d623a4aa64a600deaf (patch)
tree76b06ba88568a744914f58c7f6d35d030a8e15ef /llvm/lib/CodeGen
parent49033712e4dcdf0c4f2b3567e36859c83591fe1f (diff)
downloadbcm5719-llvm-f9bdf988a277a9a81ad827d623a4aa64a600deaf.tar.gz
bcm5719-llvm-f9bdf988a277a9a81ad827d623a4aa64a600deaf.zip
Fix build warning.
llvm-svn: 79262
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SjLjEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SjLjEHPrepare.cpp b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
index 6a8213faae4..799557accf7 100644
--- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
@@ -499,7 +499,7 @@ bool SjLjEHPass::insertSjLjEHSupport(Function &F) {
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
}
}
OpenPOWER on IntegriCloud