mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Without whole module optimization, the metadata accessors are emitted on a per-file basis. The result is that if the file containing a generic type is processed before the file containing a usage of that type that would result in that prespecialization, the metadata accessor would have already been emitted by the time that the usage is noted, making it impossible for the newly created prespecialization to be returned from the already-emitted metadata accessor. Here, require that either whole module optimization is enabled so that the metadata accessors are all emitted at once at the end, or else that the usage of the prespecialization is in the same file as the type is declared.
127 KiB
127 KiB