Files
swift-mirror/lib/AST/Module.cpp
Alastair Houghton eb9a5f734c [AST] Rewrite collectExportedImports() to be non-recursive.
The issue with recursion here is that if there are enough modules
involved, this function will blow the process stack, particularly
in the case where the `FileUnit`s are not `SourceFile`s, since in
that instance a `SmallVector` gets allocated on the stack for each
level of the recursion.

rdar://130527640
2024-06-28 14:11:53 +01:00

141 KiB