diff options
author | John McCall <rjmccall@apple.com> | 2011-01-13 02:03:06 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-01-13 02:03:06 +0000 |
commit | 294c2db42bbef486b55297fcde31e89a88998c69 (patch) | |
tree | 51478972e9d835130185b1750413451adb78003a /clang/lib/CodeGen/CGExprAgg.cpp | |
parent | 8cf302a1e7ff8896980edbb073541a648748a751 (diff) | |
download | bcm5719-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.cpp | 1 |
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) { |