diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-22 02:44:21 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-22 02:44:21 +0000 |
commit | da29e091650dc011df5209578d7c049549e5e34b (patch) | |
tree | 15cd7e1cfddf97c8374e89a83a4f92ff0c0f8210 /lib/CodeGen/CGExprScalar.cpp | |
parent | 36b8ee6325b709dd301681fb281b6cf102a5e51a (diff) |
Send code generation for xvalues down the same path as lvalues
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index a648b9c6b3..745757977a 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1110,7 +1110,7 @@ Value *ScalarExprEmitter::EmitCastExpr(CastExpr *CE) { case CK_GetObjCProperty: { assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), DestTy)); - assert(E->isLValue() && E->getObjectKind() == OK_ObjCProperty && + assert(E->isGLValue() && E->getObjectKind() == OK_ObjCProperty && "CK_GetObjCProperty for non-lvalue or non-ObjCProperty"); RValue RV = CGF.EmitLoadOfLValue(CGF.EmitLValue(E), E->getType()); return RV.getScalarVal(); |