mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Render TypeContextDescriptor into a proper hierarchy; NFC.
The purpose here is to make it easier to add type-specific fields to the descriptor.
This commit is contained in:
@@ -32,7 +32,7 @@ intptr_t _swift_stdlib_getDefaultErrorCode(OpaqueValue *error,
|
||||
// Enum tags use negative values for payload cases, so adjust code to be
|
||||
// in the range [0, num-cases).
|
||||
result = T->vw_getEnumTag(error) +
|
||||
T->getTypeContextDescriptor()->Enum.getNumPayloadCases();
|
||||
cast<EnumMetadata>(T)->getDescription()->getNumPayloadCases();
|
||||
break;
|
||||
|
||||
case MetadataKind::Class:
|
||||
|
||||
Reference in New Issue
Block a user