mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Unique SIL generic environments when serializing.
Teach the serialization of SIL generic environments, which used to be a trailing record following the SIL function definition, to use the same uniqued "generic environment IDs" that are used for the AST generic environments. Many of them overlap anyway, and SIL functions tend to have AST generic environments anyway. This approach guarantees that the AST + SIL deserialization provide the same uniqueness of generic environments present prior to serialization.
This commit is contained in:
@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
|
||||
/// in source control, you should also update the comment to briefly
|
||||
/// describe what change you made. The content of this comment isn't important;
|
||||
/// it just ensures a conflict if two people change the module format.
|
||||
const uint16_t VERSION_MINOR = 302; // Last change: SIL box type substitutions
|
||||
const uint16_t VERSION_MINOR = 303; // Last change: SIL generic environments
|
||||
|
||||
using DeclID = PointerEmbeddedInt<unsigned, 31>;
|
||||
using DeclIDField = BCFixed<31>;
|
||||
|
||||
Reference in New Issue
Block a user