@@ -358,7 +358,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
358
358
( meth:: DESTRUCTOR . get_fn ( & mut bx, vtable, & fn_ty) , fn_ty)
359
359
}
360
360
_ => {
361
- ( bx. get_fn ( drop_fn) ,
361
+ ( bx. get_fn_addr ( drop_fn) ,
362
362
FnType :: of_instance ( & bx, drop_fn) )
363
363
}
364
364
} ;
@@ -460,7 +460,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
460
460
let def_id = common:: langcall ( bx. tcx ( ) , Some ( span) , "" , lang_item) ;
461
461
let instance = ty:: Instance :: mono ( bx. tcx ( ) , def_id) ;
462
462
let fn_ty = FnType :: of_instance ( & bx, instance) ;
463
- let llfn = bx. get_fn ( instance) ;
463
+ let llfn = bx. get_fn_addr ( instance) ;
464
464
465
465
// Codegen the actual panic invoke/call.
466
466
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> {
576
576
common:: langcall ( bx. tcx ( ) , Some ( span) , "" , lang_items:: PanicFnLangItem ) ;
577
577
let instance = ty:: Instance :: mono ( bx. tcx ( ) , def_id) ;
578
578
let fn_ty = FnType :: of_instance ( & bx, instance) ;
579
- let llfn = bx. get_fn ( instance) ;
579
+ let llfn = bx. get_fn_addr ( instance) ;
580
580
581
581
if let Some ( ( _, target) ) = destination. as_ref ( ) {
582
582
helper. maybe_sideeffect ( self . mir , & mut bx, & [ * target] ) ;
@@ -793,7 +793,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
793
793
794
794
let fn_ptr = match ( llfn, instance) {
795
795
( Some ( llfn) , _) => llfn,
796
- ( None , Some ( instance) ) => bx. get_fn ( instance) ,
796
+ ( None , Some ( instance) ) => bx. get_fn_addr ( instance) ,
797
797
_ => span_bug ! ( span, "no llfn for call" ) ,
798
798
} ;
799
799
0 commit comments