Skip to content

Commit 4d4fbd2

Browse files
committed
---
yaml --- r: 11391 b: refs/heads/master c: 789a1ae h: refs/heads/master i: 11389: fe189ce 11387: f6b7114 11383: e31ceb7 11375: 3515529 11359: f42290b 11327: 5294cd3 11263: 65833e1 v: v3
1 parent 3e5bb09 commit 4d4fbd2

File tree

12 files changed

+273
-298
lines changed

12 files changed

+273
-298
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: 9691ce18a2674e322be4b2e8f2e44888eb957170
2+
refs/heads/master: 789a1ae356f75ed7db75afd485e009ce32b2bd74
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/comp/middle/trans/alt.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ enum opt_result {
3838
range_result(result, result),
3939
}
4040
fn trans_opt(bcx: block, o: opt) -> opt_result {
41-
let ccx = bcx_ccx(bcx), bcx = bcx;
41+
let ccx = bcx.ccx(), bcx = bcx;
4242
alt o {
4343
lit(l) {
4444
alt l.node {
4545
ast::expr_lit(@{node: ast::lit_str(s), _}) {
46-
let strty = ty::mk_str(bcx_tcx(bcx));
46+
let strty = ty::mk_str(bcx.tcx());
4747
let cell = empty_dest_cell();
4848
bcx = tvec::trans_str(bcx, s, by_val(cell));
4949
add_clean_temp(bcx, *cell, strty);
@@ -526,7 +526,7 @@ fn compile_submatch(bcx: block, m: match, vals: [ValueRef], f: mk_fail,
526526
llvm::LLVMAddCase(sw, r.val, opt_cx.llbb);
527527
bcx = r.bcx;
528528
}
529-
_ { bcx_tcx(bcx).sess.bug("Someone forgot to\
529+
_ { bcx.tcx().sess.bug("Someone forgot to\
530530
document an invariant in compile_submatch"); }
531531
}
532532
}
@@ -599,10 +599,10 @@ fn make_phi_bindings(bcx: block, map: [exit_node],
599599
if success {
600600
// Copy references that the alias analysis considered unsafe
601601
ids.values {|node_id|
602-
if bcx_ccx(bcx).copy_map.contains_key(node_id) {
602+
if bcx.ccx().copy_map.contains_key(node_id) {
603603
let local = alt bcx.fcx.lllocals.find(node_id) {
604604
some(local_mem(x)) { x }
605-
_ { bcx_tcx(bcx).sess.bug("Someone \
605+
_ { bcx.tcx().sess.bug("Someone \
606606
forgot to document an invariant in \
607607
make_phi_bindings"); }
608608
};
@@ -628,7 +628,7 @@ fn trans_alt(bcx: block, expr: @ast::expr, arms: [ast::arm],
628628

629629
fn trans_alt_inner(scope_cx: block, expr: @ast::expr, arms: [ast::arm],
630630
dest: dest) -> block {
631-
let bcx = scope_cx, tcx = bcx_tcx(bcx);
631+
let bcx = scope_cx, tcx = bcx.tcx();
632632
let bodies = [], match = [];
633633

634634
let {bcx, val, _} = trans_temp_expr(bcx, expr);
@@ -690,7 +690,7 @@ fn bind_irrefutable_pat(bcx: block, pat: @ast::pat, val: ValueRef,
690690
let ccx = bcx.fcx.ccx, bcx = bcx;
691691

692692
// Necessary since bind_irrefutable_pat is called outside trans_alt
693-
alt normalize_pat(bcx_tcx(bcx), pat).node {
693+
alt normalize_pat(bcx.tcx(), pat).node {
694694
ast::pat_ident(_,inner) {
695695
if make_copy || ccx.copy_map.contains_key(pat.id) {
696696
let ty = node_id_type(bcx, pat.id);

0 commit comments

Comments
 (0)