aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-07 20:18:11 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-07 20:18:11 +0000
commit130c69e969a785ff3be9e909f8eba7f89e42ac10 (patch)
treeb8a162bab536a07a2818c9d47197c2290a81c30a /lib
parentc2ab48698094f3e6f3acebc38a19b8cb04069b41 (diff)
Make the comma operator consistently call EnsureInsertPoint.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/CGExpr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 86a3ceb7a8..8d1d05dc01 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -1427,6 +1427,7 @@ LValue CodeGenFunction::EmitBinaryOperatorLValue(const BinaryOperator *E) {
// Comma expressions just emit their LHS then their RHS as an l-value.
if (E->getOpcode() == BinaryOperator::Comma) {
EmitAnyExpr(E->getLHS());
+ EnsureInsertPoint();
return EmitLValue(E->getRHS());
}