diff options
author | John McCall <rjmccall@apple.com> | 2011-02-16 08:02:54 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-16 08:02:54 +0000 |
commit | e996ffd240f20a1048179d7727a6ee3227261921 (patch) | |
tree | 4401959697b60e22969148b60cd09e9b343fec14 /lib/CodeGen/CGExprScalar.cpp | |
parent | c515d18023e952357d5dee645e6e3539b7b3d992 (diff) |
Save a copy expression for non-trivial copy constructions of catch variables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index e2e404f70f..99f3f0d323 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -199,6 +199,13 @@ public: return llvm::ConstantInt::get(ConvertType(E->getType()), E->getPackLength()); } + + Value *VisitOpaqueValueExpr(OpaqueValueExpr *E) { + if (E->isGLValue()) return EmitLoadOfLValue(E); + + // Otherwise, assume the mapping is the scalar directly. + return CGF.getOpaqueValueMapping(E); + } // l-values. Value *VisitDeclRefExpr(DeclRefExpr *E) { |