about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/inline.rs
diff options
context:
space:
mode:
authorRich Kadel <richkadel@google.com>2021-05-11 12:47:08 -0700
committerRich Kadel <richkadel@google.com>2021-05-11 12:47:08 -0700
commitbea112ba07ec3da0de8de041bc3d510fe445b157 (patch)
tree7588ebbe92c00c29d66f3a6331710e1015b81404 /compiler/rustc_mir/src/transform/inline.rs
parentba8d7e2cb7cfc87070585c17cd0aa4ae7f091a08 (diff)
downloadrust-bea112ba07ec3da0de8de041bc3d510fe445b157.tar.gz
rust-bea112ba07ec3da0de8de041bc3d510fe445b157.zip
Revert "Auto merge of #84797 - richkadel:cover-unreachable-statements, r=tmandry"
This reverts commit e5f83d24aee866a14753a7cedbb4e301dfe5bef5, reversing
changes made to ac888e8675182c703c2cd097957878faf88dad94.
Diffstat (limited to 'compiler/rustc_mir/src/transform/inline.rs')
-rw-r--r--compiler/rustc_mir/src/transform/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/inline.rs b/compiler/rustc_mir/src/transform/inline.rs
index f1c95a84ade..b6f80763bc8 100644
--- a/compiler/rustc_mir/src/transform/inline.rs
+++ b/compiler/rustc_mir/src/transform/inline.rs
@@ -57,7 +57,7 @@ impl<'tcx> MirPass<'tcx> for Inline {
         if inline(tcx, body) {
             debug!("running simplify cfg on {:?}", body.source);
             CfgSimplifier::new(body).simplify();
-            remove_dead_blocks(tcx, body);
+            remove_dead_blocks(body);
         }
     }
 }