summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-01-13 02:03:06 +0000
committerJohn McCall <rjmccall@apple.com>2011-01-13 02:03:06 +0000
commit294c2db42bbef486b55297fcde31e89a88998c69 (patch)
tree51478972e9d835130185b1750413451adb78003a /clang/lib/CodeGen/CGExprAgg.cpp
parent8cf302a1e7ff8896980edbb073541a648748a751 (diff)
downloadbcm5719-llvm-294c2db42bbef486b55297fcde31e89a88998c69.tar.gz
bcm5719-llvm-294c2db42bbef486b55297fcde31e89a88998c69.zip
Ensure an insertion point at the end of a statement-expression.
Fixes PR8967. llvm-svn: 123360
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index f02145ee298..03690777976 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -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) {
OpenPOWER on IntegriCloud