diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-10-27 14:05:12 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-10-27 14:05:12 +0200 |
| commit | bf907a3de128f4e9e2edb03fc7ca0d5393503f49 (patch) | |
| tree | 6be9355253192f764c811a92278f44e66758d261 /src | |
| parent | 1ceda5bb7e03200d402871e3e9105059d0ce64b0 (diff) | |
| parent | 7879119e6a4f971cdbd955d076ca5419432d1bb8 (diff) | |
| download | rust-bf907a3de128f4e9e2edb03fc7ca0d5393503f49.tar.gz rust-bf907a3de128f4e9e2edb03fc7ca0d5393503f49.zip | |
Sync from rust 47aeac648ed56095688c1c20972c9b72bd0da7ce
Diffstat (limited to 'src')
| -rw-r--r-- | src/abi/mod.rs | 4 | ||||
| -rw-r--r-- | src/driver/aot.rs | 2 | ||||
| -rw-r--r-- | src/intrinsics/mod.rs | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/abi/mod.rs b/src/abi/mod.rs index 15bb9067805..78fdf9c02d0 100644 --- a/src/abi/mod.rs +++ b/src/abi/mod.rs @@ -309,13 +309,13 @@ pub(crate) fn codegen_terminator_call<'tcx>( span: Span, func: &Operand<'tcx>, args: &[Operand<'tcx>], - destination: Option<(Place<'tcx>, BasicBlock)>, + mir_dest: Option<(Place<'tcx>, BasicBlock)>, ) { let fn_ty = fx.monomorphize(func.ty(fx.mir, fx.tcx)); let fn_sig = fx.tcx.normalize_erasing_late_bound_regions(ParamEnv::reveal_all(), fn_ty.fn_sig(fx.tcx)); - let destination = destination.map(|(place, bb)| (codegen_place(fx, place), bb)); + let destination = mir_dest.map(|(place, bb)| (codegen_place(fx, place), bb)); // Handle special calls like instrinsics and empty drop glue. let instance = if let ty::FnDef(def_id, substs) = *fn_ty.kind() { diff --git a/src/driver/aot.rs b/src/driver/aot.rs index 32cc50eebe4..0a8d6122aa7 100644 --- a/src/driver/aot.rs +++ b/src/driver/aot.rs @@ -224,7 +224,7 @@ pub(crate) fn run_aot( tcx, (backend_config.clone(), cgu.name()), module_codegen, - rustc_middle::dep_graph::hash_result, + Some(rustc_middle::dep_graph::hash_result), ); if let Some((id, product)) = work_product { diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index 48183b2d4f6..313b62c5770 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -407,11 +407,9 @@ pub(crate) fn codegen_intrinsic_call<'tcx>( destination: Option<(CPlace<'tcx>, BasicBlock)>, span: Span, ) { - let def_id = instance.def_id(); + let intrinsic = fx.tcx.item_name(instance.def_id()); let substs = instance.substs; - let intrinsic = fx.tcx.item_name(def_id); - let ret = match destination { Some((place, _)) => place, None => { |
