about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-03-26 16:02:10 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-03-29 11:56:36 -0700
commitb641e9e3588f78cbef1631b64c20c6ad06734624 (patch)
tree2233ef1f2535fae2400c4891ff7da7499060fa05 /src/librustc_codegen_ssa
parent285519d412ef9c65df3bcd2de2b1a3d6ca16a255 (diff)
downloadrust-b641e9e3588f78cbef1631b64c20c6ad06734624.tar.gz
rust-b641e9e3588f78cbef1631b64c20c6ad06734624.zip
Make `Visitor::visit_body` take a simple `Body`
Diffstat (limited to 'src/librustc_codegen_ssa')
-rw-r--r--src/librustc_codegen_ssa/mir/analyze.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/mir/analyze.rs b/src/librustc_codegen_ssa/mir/analyze.rs
index 04680a17517..a3d68c4d53d 100644
--- a/src/librustc_codegen_ssa/mir/analyze.rs
+++ b/src/librustc_codegen_ssa/mir/analyze.rs
@@ -20,7 +20,7 @@ pub fn non_ssa_locals<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
     let mir = fx.mir;
     let mut analyzer = LocalAnalyzer::new(fx);
 
-    analyzer.visit_body(mir);
+    analyzer.visit_body(*mir);
 
     for (local, decl) in mir.local_decls.iter_enumerated() {
         let ty = fx.monomorphize(&decl.ty);