diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2019-07-02 21:01:20 +0200 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2019-07-20 05:08:38 +0200 |
| commit | e11adb13b6944836e703ec5e9c5f0fa0bb5b4927 (patch) | |
| tree | ddc1b16172d45f82b936aa2f78a37ead9b71e2bc /src/librustc_codegen_ssa | |
| parent | 98d232487533c5ce157d2a1101bdc401253af82c (diff) | |
| download | rust-e11adb13b6944836e703ec5e9c5f0fa0bb5b4927.tar.gz rust-e11adb13b6944836e703ec5e9c5f0fa0bb5b4927.zip | |
Implement Place::as_place_ref
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/mir/analyze.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/librustc_codegen_ssa/mir/analyze.rs b/src/librustc_codegen_ssa/mir/analyze.rs index 053b28e003c..09c346117f9 100644 --- a/src/librustc_codegen_ssa/mir/analyze.rs +++ b/src/librustc_codegen_ssa/mir/analyze.rs @@ -238,12 +238,7 @@ impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx> context: PlaceContext, location: Location) { debug!("visit_place(place={:?}, context={:?})", place, context); - - let place_ref = mir::PlaceRef { - base: &place.base, - projection: &place.projection, - }; - self.process_place(&place_ref, context, location); + self.process_place(&place.as_place_ref(), context, location); } fn visit_local(&mut self, |
