@@ -686,13 +686,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
686686 }
687687 _ => (
688688 false ,
689- bx. get_fn_addr (
690- drop_fn,
691- bx. sess ( )
692- . pointer_auth_config
693- . as_ref ( )
694- . and_then ( |cfg| cfg. function_pointers . as_ref ( ) ) ,
695- ) ,
689+ bx. get_fn_addr ( drop_fn, bx. sess ( ) . pointer_authentication_functions ( ) ) ,
696690 bx. fn_abi_of_instance ( drop_fn, ty:: List :: empty ( ) ) ,
697691 drop_fn,
698692 ) ,
@@ -1110,15 +1104,10 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
11101104
11111105 (
11121106 None ,
1113- Some (
1114- bx. get_fn_addr (
1115- instance,
1116- bx. sess ( )
1117- . pointer_auth_config
1118- . as_ref ( )
1119- . and_then ( |cfg| cfg. function_pointers . as_ref ( ) ) ,
1120- ) ,
1121- ) ,
1107+ Some ( bx. get_fn_addr (
1108+ instance,
1109+ bx. sess ( ) . pointer_authentication_functions ( ) ,
1110+ ) ) ,
11221111 )
11231112 }
11241113 _ => ( Some ( instance) , None ) ,
@@ -1432,13 +1421,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
14321421 }
14331422
14341423 let fn_ptr = match ( instance, llfn) {
1435- ( Some ( instance) , None ) => bx. get_fn_addr (
1436- instance,
1437- bx. sess ( )
1438- . pointer_auth_config
1439- . as_ref ( )
1440- . and_then ( |cfg| cfg. function_pointers . as_ref ( ) ) ,
1441- ) ,
1424+ ( Some ( instance) , None ) => {
1425+ bx. get_fn_addr ( instance, bx. sess ( ) . pointer_authentication_functions ( ) )
1426+ }
14421427 ( _, Some ( llfn) ) => llfn,
14431428 _ => span_bug ! ( fn_span, "no instance or llfn for call" ) ,
14441429 } ;
0 commit comments