diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-21 18:06:41 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-21 18:06:41 +0000 |
commit | a265a3876c9302042aea5ae2a5b058b36af2ca96 (patch) | |
tree | 41b523819545ad2da420f77648717b9496824319 /clang/lib/CodeGen/CGExprScalar.cpp | |
parent | c37bc69e9186f44c656a5e7f683a9f08ac49c711 (diff) | |
download | bcm5719-llvm-a265a3876c9302042aea5ae2a5b058b36af2ca96.tar.gz bcm5719-llvm-a265a3876c9302042aea5ae2a5b058b36af2ca96.zip |
Update for LLVM API change.
llvm-svn: 76599
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index c1b2da04c8b..e58693a8d66 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/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<llvm::IntegerType>(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(); |