File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -309,13 +309,13 @@ pub(crate) fn codegen_terminator_call<'tcx>(
309
309
span : Span ,
310
310
func : & Operand < ' tcx > ,
311
311
args : & [ Operand < ' tcx > ] ,
312
- destination : Option < ( Place < ' tcx > , BasicBlock ) > ,
312
+ mir_dest : Option < ( Place < ' tcx > , BasicBlock ) > ,
313
313
) {
314
314
let fn_ty = fx. monomorphize ( func. ty ( fx. mir , fx. tcx ) ) ;
315
315
let fn_sig =
316
316
fx. tcx . normalize_erasing_late_bound_regions ( ParamEnv :: reveal_all ( ) , fn_ty. fn_sig ( fx. tcx ) ) ;
317
317
318
- let destination = destination . map ( |( place, bb) | ( codegen_place ( fx, place) , bb) ) ;
318
+ let destination = mir_dest . map ( |( place, bb) | ( codegen_place ( fx, place) , bb) ) ;
319
319
320
320
// Handle special calls like instrinsics and empty drop glue.
321
321
let instance = if let ty:: FnDef ( def_id, substs) = * fn_ty. kind ( ) {
Original file line number Diff line number Diff line change @@ -407,11 +407,9 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
407
407
destination: Option < ( CPlace < ' tcx > , BasicBlock ) > ,
408
408
span: Span ,
409
409
) {
410
- let def_id = instance. def_id( ) ;
410
+ let intrinsic = fx . tcx . item_name ( instance. def_id( ) ) ;
411
411
let substs = instance. substs;
412
412
413
- let intrinsic = fx. tcx. item_name( def_id) ;
414
-
415
413
let ret = match destination {
416
414
Some ( ( place, _) ) => place,
417
415
None => {
You can’t perform that action at this time.
0 commit comments