diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2020-03-31 14:27:48 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2020-03-31 17:37:52 -0300 |
| commit | afcd7fc51de94d51465766fa3a0f584cb0710a84 (patch) | |
| tree | 2ade0110da67e7fe6d7bc16cbcc3080077c2bb64 | |
| parent | 017620fdfcbe7cbb1813f8d07334b405f52fe8fa (diff) | |
| download | rust-afcd7fc51de94d51465766fa3a0f584cb0710a84.tar.gz rust-afcd7fc51de94d51465766fa3a0f584cb0710a84.zip | |
Use Place directly on codegen_drop_terminator, it's Copy
| -rw-r--r-- | src/librustc_codegen_ssa/mir/block.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/mir/block.rs b/src/librustc_codegen_ssa/mir/block.rs index e71a63b7f30..658c3127f69 100644 --- a/src/librustc_codegen_ssa/mir/block.rs +++ b/src/librustc_codegen_ssa/mir/block.rs @@ -299,7 +299,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { &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 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { bx.unreachable(); } - mir::TerminatorKind::Drop { ref location, target, unwind } => { + mir::TerminatorKind::Drop { location, target, unwind } => { self.codegen_drop_terminator(helper, bx, location, target, unwind); } |
