Revert "[SILOptimizer] Don't diagnose infinite recursion if a branch terminates (#19724)"

This reverts commit e94450e840.

rdar://45080912
This commit is contained in:
Graydon Hoare
2018-10-07 23:54:17 -07:00
parent 08acbf33de
commit cc16ddfd13
18 changed files with 104 additions and 183 deletions

View File

@@ -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 {