summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SjLjEHPrepare.cpp
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
commit5d17eddb0cc07c13acbb38205778db7678a65065 (patch)
treea03aad0a01702b83e07b6e44506f53a9151cfd0c /lib/CodeGen/SjLjEHPrepare.cpp
parent7b7b1020234a366dace1b449726c0751b879aefd (diff)
downloadllvm-5d17eddb0cc07c13acbb38205778db7678a65065.tar.gz
llvm-5d17eddb0cc07c13acbb38205778db7678a65065.tar.bz2
llvm-5d17eddb0cc07c13acbb38205778db7678a65065.tar.xz
Fix build warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r--lib/CodeGen/SjLjEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp
index 6a8213faae..799557accf 100644
--- a/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/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
}
}