@@ -324,7 +324,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
324324 target : mir:: BasicBlock ,
325325 unwind : Option < mir:: BasicBlock > ,
326326 ) {
327- let ty = location. ty ( self . mir . body ( ) , bx. tcx ( ) ) . ty ;
327+ let ty = location. ty ( & self . mir , bx. tcx ( ) ) . ty ;
328328 let ty = self . monomorphize ( & ty) ;
329329 let drop_fn = Instance :: resolve_drop_in_place ( bx. tcx ( ) , ty) ;
330330
@@ -510,7 +510,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
510510
511511 let extra_args = & args[ sig. inputs ( ) . len ( ) ..] ;
512512 let extra_args = extra_args. iter ( ) . map ( |op_arg| {
513- let op_ty = op_arg. ty ( self . mir . body ( ) , bx. tcx ( ) ) ;
513+ let op_ty = op_arg. ty ( & self . mir , bx. tcx ( ) ) ;
514514 self . monomorphize ( & op_ty)
515515 } ) . collect :: < Vec < _ > > ( ) ;
516516
@@ -569,7 +569,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
569569 // a NOP
570570 let target = destination. as_ref ( ) . unwrap ( ) . 1 ;
571571 helper. maybe_sideeffect ( self . mir , & mut bx, & [ target] ) ;
572- helper. funclet_br ( self , & mut bx, destination . as_ref ( ) . unwrap ( ) . 1 )
572+ helper. funclet_br ( self , & mut bx, target )
573573 }
574574 return ;
575575 }
@@ -791,7 +791,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
791791 bb : mir:: BasicBlock ,
792792 ) {
793793 let mut bx = self . build_block ( bb) ;
794- let data = & self . mir . body ( ) [ bb] ;
794+ let mir = self . mir ;
795+ let data = & mir[ bb] ;
795796
796797 debug ! ( "codegen_block({:?}={:?})" , bb, data) ;
797798
0 commit comments