Skip to content

Commit 508b803

Browse files
committed
Remove start block special case
Edges to the start block are invalid. The special case is unnecessary.
1 parent 30f168e commit 508b803

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

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ impl<'tcx> crate::MirPass<'tcx> for AddCallGuards {
3434
fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
3535
let mut pred_count: IndexVec<_, _> =
3636
body.basic_blocks.predecessors().iter().map(|ps| ps.len()).collect();
37-
pred_count[START_BLOCK] += 1;
3837

3938
// We need a place to store the new blocks generated
4039
let mut new_blocks = Vec::new();

0 commit comments

Comments
 (0)