mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IRGen+Runtime] Implement getEnumTag for singleton enums in layout strings (#66985)
This commit is contained in:
@@ -652,6 +652,11 @@ swift_generic_assignWithTake(swift::OpaqueValue *dest, swift::OpaqueValue *src,
|
||||
return swift_generic_initWithTake(dest, src, metadata);
|
||||
}
|
||||
|
||||
extern "C" unsigned swift_singletonEnum_getEnumTag(swift::OpaqueValue *address,
|
||||
const Metadata *metadata) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
unsigned swift_enumSimple_getEnumTag(swift::OpaqueValue *address,
|
||||
const Metadata *metadata) {
|
||||
|
||||
Reference in New Issue
Block a user