Skip to content

Same demangling for two swift names #23110

@trufae

Description

@trufae

These two symbols produce the same demangling output, which causes a conflict later on:

  • _OBJC_METACLASS_$__TtCC10FoundationP33_6DA0945A07226B3278459E9368612FF427__KVOKeyPathBridgeMachinery9BridgeKey
0     0x68396098         0x1ea00e098 NONE   FUNC 0        _OBJC_METACLASS_$__TtC10FoundationP33_6DA0945A07226B3278459E9368612FF427__KVOKeyPathBridgeMachinery
0     0x683978e0         0x1ea00f8e0 NONE   FUNC 0        _OBJC_METACLASS_$__TtCC10FoundationP33_6DA0945A07226B3278459E9368612FF427__KVOKeyPathBridgeMachinery9BridgeKey

that's translated to Foundation.__KVOKeyPathBridgeMachinery :: NSObject, NSObject by our demangler, but the apple one does: _OBJC_METACLASS_$_Foundation.(__KVOKeyPathBridgeMachinery in _6DA0945A07226B3278459E9368612FF4).BridgeKey

photo_2024-07-10_11-48-13
photo_2024-07-10_11-48-21

cc @mrmacete please update the ticket with more details, i'll try to find some time to fix it, meanwhile using the system demangler would work if you are on macos or ios

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions