@@ -65,7 +65,7 @@ pub(crate) fn maybe_create_entry_wrapper(
65
65
returns : vec ! [ AbiParam :: new( m. target_config( ) . pointer_type( ) /*isize*/ ) ] ,
66
66
call_conv : crate :: conv_to_call_conv (
67
67
tcx. sess . target . options . entry_abi ,
68
- CallConv :: triple_default ( m . isa ( ) . triple ( ) ) ,
68
+ m . target_config ( ) . default_call_conv ,
69
69
) ,
70
70
} ;
71
71
@@ -75,7 +75,7 @@ pub(crate) fn maybe_create_entry_wrapper(
75
75
let instance = Instance :: mono ( tcx, rust_main_def_id) . polymorphize ( tcx) ;
76
76
77
77
let main_name = tcx. symbol_name ( instance) . name ;
78
- let main_sig = get_function_sig ( tcx, m. isa ( ) . triple ( ) , instance) ;
78
+ let main_sig = get_function_sig ( tcx, m. target_config ( ) . default_call_conv , instance) ;
79
79
let main_func_id = m. declare_function ( main_name, Linkage :: Import , & main_sig) . unwrap ( ) ;
80
80
81
81
let mut ctx = Context :: new ( ) ;
@@ -119,7 +119,7 @@ pub(crate) fn maybe_create_entry_wrapper(
119
119
. polymorphize ( tcx) ;
120
120
121
121
let report_name = tcx. symbol_name ( report) . name ;
122
- let report_sig = get_function_sig ( tcx, m. isa ( ) . triple ( ) , report) ;
122
+ let report_sig = get_function_sig ( tcx, m. target_config ( ) . default_call_conv , report) ;
123
123
let report_func_id =
124
124
m. declare_function ( report_name, Linkage :: Import , & report_sig) . unwrap ( ) ;
125
125
let report_func_ref = m. declare_func_in_func ( report_func_id, & mut bcx. func ) ;
0 commit comments