mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Encode depth for cross-refs to generic parameters
Otherwise, we can't represent a cross-reference to generic parameters in a parent type /when used in an extension/. https://bugs.swift.org/browse/SR-9084
This commit is contained in:
@@ -52,7 +52,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
|
||||
/// 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.
|
||||
/// Don't worry about adhering to the 80-column limit for this line.
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 455; // Last change: reorder block IDs
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 456; // Last change: encode depth in generic param XREFs
|
||||
|
||||
using DeclIDField = BCFixed<31>;
|
||||
|
||||
@@ -1403,7 +1403,8 @@ namespace decls_block {
|
||||
|
||||
using XRefGenericParamPathPieceLayout = BCRecordLayout<
|
||||
XREF_GENERIC_PARAM_PATH_PIECE,
|
||||
BCVBR<5> // index
|
||||
BCVBR<5>, // depth
|
||||
BCVBR<5> // index
|
||||
>;
|
||||
|
||||
using SILGenNameDeclAttrLayout = BCRecordLayout<
|
||||
|
||||
Reference in New Issue
Block a user