Skip to content
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

Diagnose Infinite Recursion #11869

Merged
merged 1 commit into from
Feb 26, 2018
Merged

Commits on Feb 26, 2018

  1. Detect and diagnose infinitely-recursive code

    Add a new warning that detects when a function will call itself
    recursively on all code paths.  Attempts to invoke functions like this
    may cause unbounded stack growth at least or undefined behavior in the
    worst cases.
    
    The detection code is implemented as DFS for a reachable exit path in
    a given SILFunction.
    CodaFi committed Feb 26, 2018
    Configuration menu
    Copy the full SHA
    5c7b790 View commit details
    Browse the repository at this point in the history