diff options
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) { |