@@ -300,8 +300,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
300
300
Some ( p) => p,
301
301
} ;
302
302
303
- // Second: functions that return.
304
- match this. emulate_foreign_item_by_name ( def_id, link_name, abi, args, dest, ret ) ? {
303
+ // Second: functions that return immediately .
304
+ match this. emulate_foreign_item_by_name ( def_id, link_name, abi, args, dest) ? {
305
305
EmulateByNameResult :: NeedsJumping | EmulateByNameResult :: ExecutedExternalCCall => {
306
306
trace ! ( "{:?}" , this. dump_place( * * dest) ) ;
307
307
this. go_to_block ( ret) ;
@@ -361,7 +361,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
361
361
abi : Abi ,
362
362
args : & [ OpTy < ' tcx , Tag > ] ,
363
363
dest : & PlaceTy < ' tcx , Tag > ,
364
- ret : mir:: BasicBlock ,
365
364
) -> InterpResult < ' tcx , EmulateByNameResult < ' mir , ' tcx > > {
366
365
let this = self . eval_context_mut ( ) ;
367
366
@@ -734,8 +733,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
734
733
735
734
// Platform-specific shims
736
735
_ => match this. tcx . sess . target . os . as_ref ( ) {
737
- target if target_os_is_unix ( target) => return shims:: unix:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest, ret ) ,
738
- "windows" => return shims:: windows:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest, ret ) ,
736
+ target if target_os_is_unix ( target) => return shims:: unix:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest) ,
737
+ "windows" => return shims:: windows:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest) ,
739
738
target => throw_unsup_format ! ( "the target `{}` is not supported" , target) ,
740
739
}
741
740
} ;
0 commit comments