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 | e05f2ed478d66d65578999d6d9debef1f2277e03 (patch) | |
| tree | d306583525bd127cf0e61cdd04e719afc4224af9 /clang/lib/CodeGen/CGExprComplex.cpp | |
| parent | 69c464dec4795af43b4a432bae2b329ee5f1bef5 (diff) | |
| download | llvm-e05f2ed478d66d65578999d6d9debef1f2277e03.zip llvm-e05f2ed478d66d65578999d6d9debef1f2277e03.tar.gz llvm-e05f2ed478d66d65578999d6d9debef1f2277e03.tar.bz2 | |
Update for LLVM API change.
llvm-svn: 77249
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprComplex.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp index 445efe8..87b45d3 100644 --- a/clang/lib/CodeGen/CGExprComplex.cpp +++ b/clang/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"); |
