about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/const_goto.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2024-01-07 14:59:59 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2024-01-07 15:12:10 +0000
commit4071572cb416a1740e5530130b0454f9ce2db869 (patch)
treed6ef97865539080f4353dca6bbbaa0afd05c88e2 /compiler/rustc_mir_transform/src/const_goto.rs
parent9522993b033e57579dcdee960d8792932aba791f (diff)
downloadrust-4071572cb416a1740e5530130b0454f9ce2db869.tar.gz
rust-4071572cb416a1740e5530130b0454f9ce2db869.zip
Merge dead bb pruning and unreachable bb deduplication.
Diffstat (limited to 'compiler/rustc_mir_transform/src/const_goto.rs')
-rw-r--r--compiler/rustc_mir_transform/src/const_goto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/const_goto.rs b/compiler/rustc_mir_transform/src/const_goto.rs
index 3884346076e..cb5b66b314d 100644
--- a/compiler/rustc_mir_transform/src/const_goto.rs
+++ b/compiler/rustc_mir_transform/src/const_goto.rs
@@ -51,7 +51,7 @@ impl<'tcx> MirPass<'tcx> for ConstGoto {
         // if we applied optimizations, we potentially have some cfg to cleanup to
         // make it easier for further passes
         if should_simplify {
-            simplify_cfg(tcx, body);
+            simplify_cfg(body);
             simplify_locals(body, tcx);
         }
     }