diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-27 21:00:51 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-27 21:00:51 +0000 |
commit | bc0a2226c7fcd18b29b6846049e2cfcb872d3593 (patch) | |
tree | ea9a833fabacc7a6e607bab9b4d9345eb7586b69 /lib/CodeGen/CGExprComplex.cpp | |
parent | cad86653942d4e33c2674ea40e77d7fe59990130 (diff) |
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
-rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index 445efe8864..87b45d3af9 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -367,8 +367,6 @@ ComplexPairTy ComplexExprEmitter::EmitCast(Expr *Op, QualType DestTy) { ComplexPairTy ComplexExprEmitter::VisitPrePostIncDec(const UnaryOperator *E, bool isInc, bool isPre) { - llvm::LLVMContext &VMContext = CGF.getLLVMContext(); - LValue LV = CGF.EmitLValue(E->getSubExpr()); ComplexPairTy InVal = EmitLoadOfComplex(LV.getAddress(), LV.isVolatileQualified()); @@ -386,7 +384,7 @@ ComplexPairTy ComplexExprEmitter::VisitPrePostIncDec(const UnaryOperator *E, llvm::APFloat FVal(CGF.getContext().getFloatTypeSemantics(ElemTy), 1); if (!isInc) FVal.changeSign(); - NextVal = VMContext.getConstantFP(FVal); + NextVal = llvm::ConstantFP::get(CGF.getLLVMContext(), FVal); // Add the inc/dec to the real part. NextVal = Builder.CreateFAdd(InVal.first, NextVal, isInc ? "inc" : "dec"); |