From 4cd1608ba49c456504a3a25522c54a534b6880f3 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 21 Jul 2009 18:06:41 +0000 Subject: Update for LLVM API change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76599 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen/CGExprScalar.cpp') diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index c1b2da04c8..e58693a8d6 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -723,7 +723,7 @@ Value *ScalarExprEmitter::VisitPrePostIncDec(const UnaryOperator *E, // Bool = ((int)Bool+1) != 0 // An interesting aspect of this is that increment is always true. // Decrement does not have this property. - NextVal = VMContext.getConstantIntTrue(); + NextVal = VMContext.getTrue(); } else if (isa(InVal->getType())) { NextVal = VMContext.getConstantInt(InVal->getType(), AmountVal); NextVal = Builder.CreateAdd(InVal, NextVal, isInc ? "inc" : "dec"); @@ -1320,7 +1320,7 @@ Value *ScalarExprEmitter::VisitBinLAnd(const BinaryOperator *E) { PN->reserveOperandSpace(2); // Normal case, two inputs. for (llvm::pred_iterator PI = pred_begin(ContBlock), PE = pred_end(ContBlock); PI != PE; ++PI) - PN->addIncoming(VMContext.getConstantIntFalse(), *PI); + PN->addIncoming(VMContext.getFalse(), *PI); CGF.PushConditionalTempDestruction(); CGF.EmitBlock(RHSBlock); @@ -1367,7 +1367,7 @@ Value *ScalarExprEmitter::VisitBinLOr(const BinaryOperator *E) { PN->reserveOperandSpace(2); // Normal case, two inputs. for (llvm::pred_iterator PI = pred_begin(ContBlock), PE = pred_end(ContBlock); PI != PE; ++PI) - PN->addIncoming(VMContext.getConstantIntTrue(), *PI); + PN->addIncoming(VMContext.getTrue(), *PI); CGF.PushConditionalTempDestruction(); -- cgit v1.2.3