From: Eli Friedman Date: Mon, 7 Dec 2009 20:18:11 +0000 (+0000) Subject: Make the comma operator consistently call EnsureInsertPoint. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=130c69e969a785ff3be9e909f8eba7f89e42ac10;p=clang Make the comma operator consistently call EnsureInsertPoint. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90799 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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()); }