mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fold ExtInfo::isThin and ::isBlock into a "Representation" enum.
These bits are orthogonal to each other, so combine them into one, and diagnose attempts to produce a type that's both. Spot-fix a bunch of places this revealed by inspection that we would have crashed in SILGen or IRGen if blocks were be handled. Swift SVN r16088
This commit is contained in:
@@ -40,7 +40,7 @@ const uint16_t VERSION_MAJOR = 0;
|
||||
/// Serialized module format minor version number.
|
||||
///
|
||||
/// When the format changes IN ANY WAY, this number should be incremented.
|
||||
const uint16_t VERSION_MINOR = 46;
|
||||
const uint16_t VERSION_MINOR = 49;
|
||||
|
||||
using DeclID = Fixnum<31>;
|
||||
using DeclIDField = BCFixed<31>;
|
||||
@@ -531,6 +531,7 @@ namespace decls_block {
|
||||
ParameterConventionField, // callee convention
|
||||
AbstractCCField, // calling convention
|
||||
BCFixed<1>, // thin?
|
||||
BCFixed<1>, // block?
|
||||
BCFixed<1>, // noreturn?
|
||||
BCFixed<30>, // number of generic parameters
|
||||
BCArray<TypeIDField> // parameter types and conventions, alternating
|
||||
|
||||
Reference in New Issue
Block a user