We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c74c22b commit 2380084Copy full SHA for 2380084
compiler/rustc_mir_transform/src/add_call_guards.rs
@@ -30,7 +30,6 @@ pub(super) use self::AddCallGuards::*;
30
impl<'tcx> crate::MirPass<'tcx> for AddCallGuards {
31
fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
32
let mut pred_count = IndexVec::from_elem(0u8, &body.basic_blocks);
33
- pred_count[START_BLOCK] = 1; // Add entry edge.
34
for (_, data) in body.basic_blocks.iter_enumerated() {
35
for succ in data.terminator().successors() {
36
pred_count[succ] = pred_count[succ].saturating_add(1);
0 commit comments