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:
@@ -1074,7 +1074,7 @@ static void eliminateRetainsPrecedingProgramTerminationPoints(SILFunction *f) {
|
||||
if (auto apply = FullApplySite::isa(&*iter)) {
|
||||
SILFunction *callee = apply.getCalleeFunction();
|
||||
if (!callee ||
|
||||
!callee->hasSemanticsAttr(SEMANTICS_PROGRAMTERMINATION_POINT)) {
|
||||
!callee->hasSemanticsAttr(SEMANTICS_ARC_PROGRAMTERMINATION_POINT)) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user