Skip to content

DiagnoseInfiniteRecursion: fix a false warning caused by dead-end blocks #38906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

eeckstein
Copy link
Contributor

The algorithm needs to take care of dead-end blocks.
This is done by propagating two flags instead of one: reachesRecursiveCall and reachesFunctionExit.
Dead-end blocks have none of both flags set.

rdar://80645083

The algorithm needs to take care of dead-end blocks.
This is done by propagating two flags instead of one: `reachesRecursiveCall` and `reachesFunctionExit`.
Dead-end blocks have none of both flags set.

rdar://80645083
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 5ea28a7 into swiftlang:main Aug 17, 2021
@eeckstein eeckstein deleted the fix-diagnose-infinite-recursion branch August 17, 2021 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant