diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-02 20:03:16 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-02 20:03:16 +0000 |
commit | 776b790fe404360b691f2dd477877a1112db7ad2 (patch) | |
tree | 0a6bafbf0d01f916a267f018c4d0235ed460b6c4 /lib/CodeGen/CGExprComplex.cpp | |
parent | 6f27542da8843b5c1c579b86e342385bcc43d5f0 (diff) |
revert patch in r139020
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
-rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index 24d0115028..1a27d1322b 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -311,7 +311,11 @@ void ComplexExprEmitter::EmitStoreOfComplex(ComplexPairTy Val, llvm::Value *Ptr, //===----------------------------------------------------------------------===// ComplexPairTy ComplexExprEmitter::VisitExpr(Expr *E) { - return EmitLoadOfLValue(E); + CGF.ErrorUnsupported(E, "complex expression"); + llvm::Type *EltTy = + CGF.ConvertType(E->getType()->getAs<ComplexType>()->getElementType()); + llvm::Value *U = llvm::UndefValue::get(EltTy); + return ComplexPairTy(U, U); } ComplexPairTy ComplexExprEmitter:: |