Make serialization/deserialization compile with layout constraints

This commit is contained in:
Roman Levenstein
2017-01-11 14:27:57 -08:00
parent 2e58786705
commit 84f21a81be
3 changed files with 25 additions and 8 deletions

View File

@@ -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 = 306; // Last change: SILArgument+Ownership
const uint16_t VERSION_MINOR = 307; // Last change: layout requirements
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;
@@ -248,6 +248,7 @@ enum GenericRequirementKind : uint8_t {
Conformance = 0,
SameType = 1,
Superclass = 2,
Layout = 3,
};
using GenericRequirementKindField = BCFixed<2>;