@@ -15,6 +15,7 @@ use log::trace;
1515
1616use rustc_middle:: { mir, ty} ;
1717use rustc_target:: spec:: PanicStrategy ;
18+ use rustc_target:: spec:: abi:: Abi ;
1819
1920use crate :: * ;
2021use helpers:: check_arg_count;
@@ -96,6 +97,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
9697 let ret_place = MPlaceTy :: dangling ( this. machine . layouts . unit , this) . into ( ) ;
9798 this. call_function (
9899 f_instance,
100+ Abi :: Rust ,
99101 & [ data. into ( ) ] ,
100102 Some ( & ret_place) ,
101103 // Directly return to caller.
@@ -147,6 +149,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
147149 let ret_place = MPlaceTy :: dangling ( this. machine . layouts . unit , this) . into ( ) ;
148150 this. call_function (
149151 f_instance,
152+ Abi :: Rust ,
150153 & [ catch_unwind. data . into ( ) , payload. into ( ) ] ,
151154 Some ( & ret_place) ,
152155 // Directly return to caller of `try`.
@@ -176,6 +179,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
176179 let panic = ty:: Instance :: mono ( this. tcx . tcx , panic) ;
177180 this. call_function (
178181 panic,
182+ Abi :: Rust ,
179183 & [ msg. to_ref ( ) ] ,
180184 None ,
181185 StackPopCleanup :: Goto { ret : None , unwind } ,
@@ -204,6 +208,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
204208 let panic_bounds_check = ty:: Instance :: mono ( this. tcx . tcx , panic_bounds_check) ;
205209 this. call_function (
206210 panic_bounds_check,
211+ Abi :: Rust ,
207212 & [ index. into ( ) , len. into ( ) ] ,
208213 None ,
209214 StackPopCleanup :: Goto { ret : None , unwind } ,
0 commit comments