mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
5c7b79072b
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.