Use Place directly on codegen_drop_terminator, it's Copy
This commit is contained in:
parent
017620fdfc
commit
afcd7fc51d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user