Ensure an insertion point at the end of a statement-expression.

Fixes PR8967.

llvm-svn: 123360
This commit is contained in:
John McCall
2011-01-13 02:03:06 +00:00
parent 8cf302a1e7
commit 294c2db42b
4 changed files with 17 additions and 6 deletions

View File

@@ -368,6 +368,7 @@ void AggExprEmitter::VisitBinComma(const BinaryOperator *E) {
void AggExprEmitter::VisitStmtExpr(const StmtExpr *E) {
CGF.EmitCompoundStmt(*E->getSubStmt(), true, Dest);
CGF.EnsureInsertPoint();
}
void AggExprEmitter::VisitBinaryOperator(const BinaryOperator *E) {