Skip to content

Commit 2380084

Browse files
committed
START_BLOCK cannot have incoming edges.
1 parent c74c22b commit 2380084

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_mir_transform/src/add_call_guards.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub(super) use self::AddCallGuards::*;
3030
impl<'tcx> crate::MirPass<'tcx> for AddCallGuards {
3131
fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
3232
let mut pred_count = IndexVec::from_elem(0u8, &body.basic_blocks);
33-
pred_count[START_BLOCK] = 1; // Add entry edge.
3433
for (_, data) in body.basic_blocks.iter_enumerated() {
3534
for succ in data.terminator().successors() {
3635
pred_count[succ] = pred_count[succ].saturating_add(1);

0 commit comments

Comments
 (0)