mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Remove some unnecessary dereferences.
This commit is contained in:
parent
4f2588f23a
commit
9cf90b9fc9
@ -639,7 +639,7 @@ impl<'tcx> Inliner<'tcx> {
|
|||||||
);
|
);
|
||||||
let dest_ty = dest.ty(caller_body, self.tcx);
|
let dest_ty = dest.ty(caller_body, self.tcx);
|
||||||
let temp =
|
let temp =
|
||||||
Place::from(self.new_call_temp(caller_body, &callsite, dest_ty, return_block));
|
Place::from(self.new_call_temp(caller_body, callsite, dest_ty, return_block));
|
||||||
caller_body[callsite.block].statements.push(Statement {
|
caller_body[callsite.block].statements.push(Statement {
|
||||||
source_info: callsite.source_info,
|
source_info: callsite.source_info,
|
||||||
kind: StatementKind::Assign(Box::new((temp, dest))),
|
kind: StatementKind::Assign(Box::new((temp, dest))),
|
||||||
@ -658,7 +658,7 @@ impl<'tcx> Inliner<'tcx> {
|
|||||||
true,
|
true,
|
||||||
self.new_call_temp(
|
self.new_call_temp(
|
||||||
caller_body,
|
caller_body,
|
||||||
&callsite,
|
callsite,
|
||||||
destination.ty(caller_body, self.tcx).ty,
|
destination.ty(caller_body, self.tcx).ty,
|
||||||
return_block,
|
return_block,
|
||||||
),
|
),
|
||||||
@ -666,7 +666,7 @@ impl<'tcx> Inliner<'tcx> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Copy the arguments if needed.
|
// Copy the arguments if needed.
|
||||||
let args = self.make_call_args(args, &callsite, caller_body, &callee_body, return_block);
|
let args = self.make_call_args(args, callsite, caller_body, &callee_body, return_block);
|
||||||
|
|
||||||
let mut integrator = Integrator {
|
let mut integrator = Integrator {
|
||||||
args: &args,
|
args: &args,
|
||||||
|
Loading…
Reference in New Issue
Block a user