Use Place directly on codegen_drop_terminator, it's Copy

This commit is contained in:
Santiago Pastorino 2020-03-31 14:27:48 -03:00
parent 017620fdfc
commit afcd7fc51d
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -299,7 +299,7 @@ fn codegen_drop_terminator(
&mut self,
helper: TerminatorCodegenHelper<'tcx>,
mut bx: Bx,
location: &mir::Place<'tcx>,
location: mir::Place<'tcx>,
target: mir::BasicBlock,
unwind: Option<mir::BasicBlock>,
) {
@ -873,7 +873,7 @@ fn codegen_terminator(
bx.unreachable();
}
mir::TerminatorKind::Drop { ref location, target, unwind } => {
mir::TerminatorKind::Drop { location, target, unwind } => {
self.codegen_drop_terminator(helper, bx, location, target, unwind);
}