aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-22 02:44:21 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-22 02:44:21 +0000
commitda29e091650dc011df5209578d7c049549e5e34b (patch)
tree15cd7e1cfddf97c8374e89a83a4f92ff0c0f8210 /lib/CodeGen/CGExpr.cpp
parent36b8ee6325b709dd301681fb281b6cf102a5e51a (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/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index bdc4ef723a..8e5ee75972 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -202,7 +202,7 @@ EmitExprForReferenceBinding(CodeGenFunction &CGF, const Expr *E,
}
RValue RV;
- if (E->isLValue()) {
+ if (E->isGLValue()) {
// Emit the expression as an lvalue.
LValue LV = CGF.EmitLValue(E);
if (LV.isSimple())