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 | 8d3d6c93551cc62c6d550f090991bfba1d32d0a4 (patch) | |
tree | 359d40b2617eac1b8b46e5efdccbf43969d94bcc /lib/CodeGen/CGExprAgg.cpp | |
parent | 48aef3625a0a80d044b40f872355990134ee7598 (diff) |
Ensure an insertion point at the end of a statement-expression.
Fixes PR8967.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index f02145ee29..0369077797 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/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) { |