diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-26 20:23:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-26 20:23:23 +0000 |
commit | 91d723da7b68be5245c3ac58aa2a36d04658cfb8 (patch) | |
tree | 95cdbd59ae455336821c0a4ffeba6e3b9d82cf7c /lib/CodeGen/CGExprScalar.cpp | |
parent | 345f7209692b116ca433a3196c1e3c998e0ffcde (diff) |
implement codegen support for labels at the end of stmtexprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 37579c6da1..da8350b19f 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -583,7 +583,8 @@ Value *ScalarExprEmitter::EmitCastExpr(const Expr *E, QualType DestTy) { } Value *ScalarExprEmitter::VisitStmtExpr(const StmtExpr *E) { - return CGF.EmitCompoundStmt(*E->getSubStmt(), true).getScalarVal(); + return CGF.EmitCompoundStmt(*E->getSubStmt(), + !E->getType()->isVoidType()).getScalarVal(); } |