File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -4677,21 +4677,13 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
4677
4677
// Make sure that each of the successors/predecessors of this basic block
4678
4678
// have this basic block in its predecessor/successor list.
4679
4679
for (const auto *SuccBB : BB->getSuccessorBlocks ()) {
4680
- bool FoundSelfInSuccessor = false ;
4681
- if (SuccBB->isPredecessorBlock (BB)) {
4682
- FoundSelfInSuccessor = true ;
4683
- break ;
4684
- }
4685
- require (FoundSelfInSuccessor, " Must be a predecessor of each successor." );
4680
+ require (SuccBB->isPredecessorBlock (BB),
4681
+ " Must be a predecessor of each successor." );
4686
4682
}
4687
4683
4688
4684
for (const SILBasicBlock *PredBB : BB->getPredecessorBlocks ()) {
4689
- bool FoundSelfInPredecessor = false ;
4690
- if (PredBB->isSuccessorBlock (BB)) {
4691
- FoundSelfInPredecessor = true ;
4692
- break ;
4693
- }
4694
- require (FoundSelfInPredecessor, " Must be a successor of each predecessor." );
4685
+ require (PredBB->isSuccessorBlock (BB),
4686
+ " Must be a successor of each predecessor." );
4695
4687
}
4696
4688
4697
4689
SILInstructionVisitor::visitSILBasicBlock (BB);
You can’t perform that action at this time.
0 commit comments