Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks...
[oota-llvm.git] / lib / Transforms / Scalar / LoopIndexSplit.cpp
index f20511ea28c541b58129b208ccb35ca296415d95..f5e5d350de510188ec48a63b4a7bb28b61a6232b 100644 (file)
@@ -295,14 +295,14 @@ static bool isUsedOutsideLoop(Value *V, Loop *L) {
 // Return V+1
 static Value *getPlusOne(Value *V, bool Sign, Instruction *InsertPt, 
                          LLVMContext &Context) {
-  Constant *One = Context.getConstantInt(V->getType(), 1, Sign);
+  Constant *One = ConstantInt::get(V->getType(), 1, Sign);
   return BinaryOperator::CreateAdd(V, One, "lsp", InsertPt);
 }
 
 // Return V-1
 static Value *getMinusOne(Value *V, bool Sign, Instruction *InsertPt,
                           LLVMContext &Context) {
-  Constant *One = Context.getConstantInt(V->getType(), 1, Sign);
+  Constant *One = ConstantInt::get(V->getType(), 1, Sign);
   return BinaryOperator::CreateSub(V, One, "lsp", InsertPt);
 }