File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,12 @@ pub(crate) fn maybe_create_entry_wrapper(
113
113
// FIXME do proper abi handling instead of expecting the pass mode to be identical
114
114
// for returns and arguments.
115
115
let report_call_inst = bcx. ins ( ) . call ( report_func_ref, & call_results) ;
116
- bcx. func . dfg . inst_results ( report_call_inst) [ 0 ]
116
+ let res = bcx. func . dfg . inst_results ( report_call_inst) [ 0 ] ;
117
+ match m. target_config ( ) . pointer_type ( ) {
118
+ types:: I32 => res,
119
+ types:: I64 => bcx. ins ( ) . sextend ( types:: I64 , res) ,
120
+ _ => unimplemented ! ( "16bit systems are not yet supported" ) ,
121
+ }
117
122
} else if is_main_fn {
118
123
let start_def_id = tcx. require_lang_item ( LangItem :: Start , None ) ;
119
124
let start_instance = Instance :: resolve (
You can’t perform that action at this time.
0 commit comments