mirror of
https://github.com/apple/swift.git
synced 2026-11-24 07:03:51 +01:00
When a module re-exports multiple Clang submodules, if the number of submodules is too high to allocate the `SmallPtrSet`/`SmallDenseMap` inline, it lives on the heap, where the pointer-address ordering causes symbols to be emitted in a non-deterministic order. Use `SmallSetVector`/`SmallMapVector` instead to ensure the emitted symbol graph is deterministic. rdar://190615499