diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-31 17:39:36 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-31 17:39:36 +0000 |
commit | fe4e34707cae1e634b572441baad8ef7457fbf11 (patch) | |
tree | 29d8a2032c916aa6ed3852121fa2beade687c958 /clang/lib/CodeGen/CGExprScalar.cpp | |
parent | 23a204d91b9a6febe11e54cab7a940d8a73e4612 (diff) | |
download | bcm5719-llvm-fe4e34707cae1e634b572441baad8ef7457fbf11.tar.gz bcm5719-llvm-fe4e34707cae1e634b572441baad8ef7457fbf11.zip |
Update for LLVM API change.
llvm-svn: 77686
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 dd163a988e5..baf007991c4 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -729,7 +729,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.getTrue(); + NextVal = llvm::ConstantInt::getTrue(VMContext); } else if (isa<llvm::IntegerType>(InVal->getType())) { NextVal = llvm::ConstantInt::get(InVal->getType(), AmountVal); NextVal = Builder.CreateAdd(InVal, NextVal, isInc ? "inc" : "dec"); @@ -1327,7 +1327,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.getFalse(), *PI); + PN->addIncoming(llvm::ConstantInt::getFalse(VMContext), *PI); CGF.PushConditionalTempDestruction(); CGF.EmitBlock(RHSBlock); @@ -1374,7 +1374,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.getTrue(), *PI); + PN->addIncoming(llvm::ConstantInt::getTrue(VMContext), *PI); CGF.PushConditionalTempDestruction(); |