diff options
| author | John McCall <rjmccall@apple.com> | 2011-11-08 22:54:08 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-11-08 22:54:08 +0000 |
| commit | a5493f885095bd63d525a7035ad1c224de3ae5f2 (patch) | |
| tree | 649509969218d296d3a3425f03f5539386e628bf /lib/CodeGen/CGExpr.cpp | |
| parent | 90f7b62aba1ae2d41bfe2286c210b027fc62681f (diff) | |
| download | clang-a5493f885095bd63d525a7035ad1c224de3ae5f2.tar.gz clang-a5493f885095bd63d525a7035ad1c224de3ae5f2.tar.bz2 clang-a5493f885095bd63d525a7035ad1c224de3ae5f2.tar.xz | |
Bind function "r-values" as l-values when emitting them as
opaque values. Silly C type system.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index d7e3168a3a..4d14d18e59 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -2137,7 +2137,7 @@ LValue CodeGenFunction::EmitNullInitializationLValue( } LValue CodeGenFunction::EmitOpaqueValueLValue(const OpaqueValueExpr *e) { - assert(e->isGLValue() || e->getType()->isRecordType()); + assert(OpaqueValueMappingData::shouldBindAsLValue(e)); return getOpaqueLValueMapping(e); } |
