summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-24 23:12:58 +0000
committerOwen Anderson <resistor@mac.com>2009-07-24 23:12:58 +0000
commitb7a2fe6f8107bb69c1c1754bcb88e403dd8efc40 (patch)
tree77fc0827bc3329b64b0f0c15316329b352e3772c /clang/lib/CodeGen/CGExprComplex.cpp
parentedb4a703255623eef2c56e644f9fdc04cadd7336 (diff)
downloadbcm5719-llvm-b7a2fe6f8107bb69c1c1754bcb88e403dd8efc40.tar.gz
bcm5719-llvm-b7a2fe6f8107bb69c1c1754bcb88e403dd8efc40.zip
Update for LLVM API change.
llvm-svn: 77012
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index b5597ad7b08..a89ef9e80e7 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -376,7 +376,7 @@ ComplexPairTy ComplexExprEmitter::VisitPrePostIncDec(const UnaryOperator *E,
llvm::Value *NextVal;
if (isa<llvm::IntegerType>(InVal.first->getType())) {
uint64_t AmountVal = isInc ? 1 : -1;
- NextVal = VMContext.getConstantInt(InVal.first->getType(), AmountVal, true);
+ NextVal = llvm::ConstantInt::get(InVal.first->getType(), AmountVal, true);
// Add the inc/dec to the real part.
NextVal = Builder.CreateAdd(InVal.first, NextVal, isInc ? "inc" : "dec");
OpenPOWER on IntegriCloud