aboutsummaryrefslogtreecommitdiffstats
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
commit2b731cb45fe6494421220c5745548eccec2841ea (patch)
treea03aad0a01702b83e07b6e44506f53a9151cfd0c /lib/CodeGen/SjLjEHPrepare.cpp
parentfe538ebcd2512cd3ce0e3bab9aa5e9e96182a639 (diff)
downloadexternal_llvm-2b731cb45fe6494421220c5745548eccec2841ea.zip
external_llvm-2b731cb45fe6494421220c5745548eccec2841ea.tar.gz
external_llvm-2b731cb45fe6494421220c5745548eccec2841ea.tar.bz2
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 6a8213f..799557a 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
}
}