From 5d17eddb0cc07c13acbb38205778db7678a65065 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 17 Aug 2009 18:41:42 +0000 Subject: [PATCH] Fix build warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79262 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SjLjEHPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp index 6a8213faae4..799557accf7 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(--I)) { if (CI->getCalledFunction() == ResumeFn) { - Value *NegativeOne = ConstantInt::get(Int32Ty, -1); + Value *NegativeOne = Constant::getAllOnesValue(Int32Ty); new StoreInst(NegativeOne, CallSite, true, I); // volatile } } -- 2.11.0