aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-16 08:02:54 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-16 08:02:54 +0000
commit1bf5846abf2ce98c4c9c420d1757b01a1663d8cc (patch)
tree2dcbb6372072983963df0b5d6bf58a31bdf103d0 /clang/lib/CodeGen/CGExprComplex.cpp
parentc8fb2557b9e96fcde75d8cb4a5bf6de06e1ea470 (diff)
downloadllvm-1bf5846abf2ce98c4c9c420d1757b01a1663d8cc.zip
llvm-1bf5846abf2ce98c4c9c420d1757b01a1663d8cc.tar.gz
llvm-1bf5846abf2ce98c4c9c420d1757b01a1663d8cc.tar.bz2
Save a copy expression for non-trivial copy constructions of catch variables.
llvm-svn: 125661
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 21c298a..15901eb 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -129,6 +129,14 @@ public:
}
ComplexPairTy VisitArraySubscriptExpr(Expr *E) { return EmitLoadOfLValue(E); }
ComplexPairTy VisitMemberExpr(const Expr *E) { return EmitLoadOfLValue(E); }
+ ComplexPairTy VisitOpaqueValueExpr(OpaqueValueExpr *E) {
+ if (E->isGLValue()) return EmitLoadOfLValue(E);
+
+ // Otherwise, the mapping is... what, exactly? Probably a
+ // first-class aggregate, but it's really just not worthwhile.
+ CGF.ErrorUnsupported(E, "complex opaque r-value");
+ return ComplexPairTy();
+ }
// FIXME: CompoundLiteralExpr