@@ -38,12 +38,12 @@ enum opt_result {
38
38
range_result( result , result ) ,
39
39
}
40
40
fn trans_opt ( bcx : block , o : opt ) -> opt_result {
41
- let ccx = bcx_ccx ( bcx) , bcx = bcx;
41
+ let ccx = bcx. ccx ( ) , bcx = bcx;
42
42
alt o {
43
43
lit( l) {
44
44
alt l. node {
45
45
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 ( ) ) ;
47
47
let cell = empty_dest_cell ( ) ;
48
48
bcx = tvec:: trans_str ( bcx, s, by_val ( cell) ) ;
49
49
add_clean_temp ( bcx, * cell, strty) ;
@@ -526,7 +526,7 @@ fn compile_submatch(bcx: block, m: match, vals: [ValueRef], f: mk_fail,
526
526
llvm:: LLVMAddCase ( sw, r. val , opt_cx. llbb ) ;
527
527
bcx = r. bcx ;
528
528
}
529
- _ { bcx_tcx ( bcx) . sess . bug ( "Someone forgot to\
529
+ _ { bcx. tcx ( ) . sess . bug ( "Someone forgot to\
530
530
document an invariant in compile_submatch") ; }
531
531
}
532
532
}
@@ -599,10 +599,10 @@ fn make_phi_bindings(bcx: block, map: [exit_node],
599
599
if success {
600
600
// Copy references that the alias analysis considered unsafe
601
601
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) {
603
603
let local = alt bcx. fcx . lllocals . find ( node_id) {
604
604
some ( local_mem ( x) ) { x }
605
- _ { bcx_tcx ( bcx) . sess . bug ( "Someone \
605
+ _ { bcx. tcx ( ) . sess . bug ( "Someone \
606
606
forgot to document an invariant in \
607
607
make_phi_bindings") ; }
608
608
} ;
@@ -628,7 +628,7 @@ fn trans_alt(bcx: block, expr: @ast::expr, arms: [ast::arm],
628
628
629
629
fn trans_alt_inner ( scope_cx : block , expr : @ast:: expr , arms : [ ast:: arm ] ,
630
630
dest : dest ) -> block {
631
- let bcx = scope_cx, tcx = bcx_tcx ( bcx) ;
631
+ let bcx = scope_cx, tcx = bcx. tcx ( ) ;
632
632
let bodies = [ ] , match = [ ] ;
633
633
634
634
let { bcx, val, _} = trans_temp_expr ( bcx, expr) ;
@@ -690,7 +690,7 @@ fn bind_irrefutable_pat(bcx: block, pat: @ast::pat, val: ValueRef,
690
690
let ccx = bcx. fcx . ccx , bcx = bcx;
691
691
692
692
// 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 {
694
694
ast:: pat_ident ( _, inner) {
695
695
if make_copy || ccx. copy_map . contains_key ( pat. id ) {
696
696
let ty = node_id_type ( bcx, pat. id ) ;
0 commit comments