]> granicus.if.org Git - clang/commitdiff
Make the comma operator consistently call EnsureInsertPoint.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 7 Dec 2009 20:18:11 +0000 (20:18 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 7 Dec 2009 20:18:11 +0000 (20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90799 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp

index 86a3ceb7a8b7e06dd19cda61643dd702725155d6..8d1d05dc01ed32b95b9e7963cc673bcfc8cf1d36 100644 (file)
@@ -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());
   }