Skip to content

Commit 7fd65d5

Browse files
committed
---
yaml --- r: 212269 b: refs/heads/master c: 79b0c89 h: refs/heads/master i: 212267: c5e25a5 v: v3
1 parent a98b3b4 commit 7fd65d5

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e9db5fb20239d9343c17e3216297df489115d416
2+
refs/heads/master: 79b0c89d509d673ee34097b5dcb0d609fea6619d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/src/librustc_trans/trans/controlflow.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ use syntax::ast;
3030
use syntax::ast_util;
3131
use syntax::parse::token::InternedString;
3232
use syntax::parse::token;
33-
use syntax::visit::Visitor;
3433

3534
pub fn trans_stmt<'blk, 'tcx>(cx: Block<'blk, 'tcx>,
3635
s: &ast::Stmt)
@@ -171,16 +170,7 @@ pub fn trans_if<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
171170
// if true { .. } [else { .. }]
172171
bcx = trans_block(bcx, &*thn, dest);
173172
trans::debuginfo::clear_source_location(bcx.fcx);
174-
175-
if let Some(elexpr) = els {
176-
let mut trans = TransItemVisitor { ccx: bcx.fcx.ccx };
177-
trans.visit_expr(&*elexpr);
178-
}
179173
} else {
180-
// if false { .. } [else { .. }]
181-
let mut trans = TransItemVisitor { ccx: bcx.fcx.ccx };
182-
trans.visit_block(&*thn);
183-
184174
if let Some(elexpr) = els {
185175
bcx = expr::trans_into(bcx, &*elexpr, dest);
186176
trans::debuginfo::clear_source_location(bcx.fcx);

0 commit comments

Comments
 (0)