Skip to content

Commit e4436c3

Browse files
committed
Don't build up results for ignored expressions.
Issue #667
1 parent d74a7a8 commit e4436c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4749,7 +4749,7 @@ fn trans_stmt(cx: @block_ctxt, s: ast::stmt) -> @block_ctxt {
47494749

47504750
let bcx = cx;
47514751
alt s.node {
4752-
ast::stmt_expr(e, _) { bcx = trans_expr(cx, e).bcx; }
4752+
ast::stmt_expr(e, _) { bcx = trans_expr_dps(cx, e, ignore); }
47534753
ast::stmt_decl(d, _) {
47544754
alt d.node {
47554755
ast::decl_local(locals) {

0 commit comments

Comments
 (0)