mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[SILOptimizer] Don't diagnose infinite recursion if a branch terminates (#19724)"
This reverts commit e94450e840.
rdar://45080912
This commit is contained in:
@@ -3515,7 +3515,7 @@ bool SimplifyCFG::simplifyProgramTerminationBlock(SILBasicBlock *BB) {
|
||||
// use the analysis is because the CFG is likely to be invalidated right
|
||||
// after this pass, o we do not really get the benefit of reusing the
|
||||
// computation for the next iteration of the pass.
|
||||
if (!BB->isProgramTerminationPoint())
|
||||
if (!isARCInertTrapBB(BB))
|
||||
return false;
|
||||
|
||||
// This is going to be the last basic block this program is going to execute
|
||||
|
||||
Reference in New Issue
Block a user