mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Runtime] Add destructiveEnumInject support for singleton enums with layout strings
This commit is contained in:
@@ -659,6 +659,11 @@ extern "C" unsigned swift_singletonEnum_getEnumTag(swift::OpaqueValue *address,
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" void swift_singletonEnum_destructiveInjectEnumTag(
|
||||
swift::OpaqueValue *address, unsigned tag, const Metadata *metadata) {
|
||||
return;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
static inline T handleSinglePayloadEnumSimpleTag(
|
||||
LayoutStringReader &reader, uint8_t *addr,
|
||||
|
||||
Reference in New Issue
Block a user