diff options
| author | Henry Boisdequin <65845077+henryboisdequin@users.noreply.github.com> | 2021-02-16 14:20:36 +0530 |
|---|---|---|
| committer | Henry Boisdequin <65845077+henryboisdequin@users.noreply.github.com> | 2021-02-16 14:20:36 +0530 |
| commit | 5ec4b060a793b7e04e87654b1d96f5d1fca23667 (patch) | |
| tree | 635245a6f54666c9a69f2053da18e30b7ecad627 /compiler/rustc_codegen_ssa/src/mir | |
| parent | 30c5125fbe86f48a547a23917dcafab1b3f3ac7e (diff) | |
| download | rust-5ec4b060a793b7e04e87654b1d96f5d1fca23667.tar.gz rust-5ec4b060a793b7e04e87654b1d96f5d1fca23667.zip | |
make `visit_projection` take a `PlaceRef`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/mir')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/analyze.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/analyze.rs b/compiler/rustc_codegen_ssa/src/mir/analyze.rs index fd0ff5b66e6..289629d9215 100644 --- a/compiler/rustc_codegen_ssa/src/mir/analyze.rs +++ b/compiler/rustc_codegen_ssa/src/mir/analyze.rs @@ -199,7 +199,7 @@ impl<Bx: BuilderMethods<'a, 'tcx>> LocalAnalyzer<'mir, 'a, 'tcx, Bx> { } self.visit_local(&place_ref.local, context, location); - self.visit_projection(place_ref.local, place_ref.projection, context, location); + self.visit_projection(*place_ref, context, location); } } } |
