@@ -358,7 +358,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
358358 ( meth:: DESTRUCTOR . get_fn ( & mut bx, vtable, & fn_ty) , fn_ty)
359359 }
360360 _ => {
361- ( bx. get_fn ( drop_fn) ,
361+ ( bx. get_fn_addr ( drop_fn) ,
362362 FnType :: of_instance ( & bx, drop_fn) )
363363 }
364364 } ;
@@ -460,7 +460,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
460460 let def_id = common:: langcall ( bx. tcx ( ) , Some ( span) , "" , lang_item) ;
461461 let instance = ty:: Instance :: mono ( bx. tcx ( ) , def_id) ;
462462 let fn_ty = FnType :: of_instance ( & bx, instance) ;
463- let llfn = bx. get_fn ( instance) ;
463+ let llfn = bx. get_fn_addr ( instance) ;
464464
465465 // Codegen the actual panic invoke/call.
466466 helper. do_call ( self , & mut bx, fn_ty, llfn, & args, None , cleanup) ;
@@ -576,7 +576,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
576576 common:: langcall ( bx. tcx ( ) , Some ( span) , "" , lang_items:: PanicFnLangItem ) ;
577577 let instance = ty:: Instance :: mono ( bx. tcx ( ) , def_id) ;
578578 let fn_ty = FnType :: of_instance ( & bx, instance) ;
579- let llfn = bx. get_fn ( instance) ;
579+ let llfn = bx. get_fn_addr ( instance) ;
580580
581581 if let Some ( ( _, target) ) = destination. as_ref ( ) {
582582 helper. maybe_sideeffect ( self . mir , & mut bx, & [ * target] ) ;
@@ -793,7 +793,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
793793
794794 let fn_ptr = match ( llfn, instance) {
795795 ( Some ( llfn) , _) => llfn,
796- ( None , Some ( instance) ) => bx. get_fn ( instance) ,
796+ ( None , Some ( instance) ) => bx. get_fn_addr ( instance) ,
797797 _ => span_bug ! ( span, "no llfn for call" ) ,
798798 } ;
799799
0 commit comments