mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This utility is used by DependentAddressUseDefWalker which now conservatively follows all possible uses. This could result in the same address being reached multiple times during a def-use walk. Ensure that we don't infinitely recurse. There is no small test case for this, but the fix is trivial and standard practice for such walkers, and this is hit quickly in real usage, so there is no danger of it regressing. Fixes rdar://150403948 ([nonescapable] Infinite recursion compiler crash in lifetime dependence checking)