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

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎compiler/rustc_mir_transform/src/add_call_guards.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ impl<'tcx> crate::MirPass<'tcx> for AddCallGuards {
3434
fnrun_pass(&self,_tcx:TyCtxt<'tcx>,body:&mutBody<'tcx>){
3535
letmut 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
letmut new_blocks = Vec::new();

0 commit comments

Comments
 (0)