mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- The overload of operator^ on FormalLinkage, while cute, was only used in this one place, and does not behave like an XOR. - The structural type walk was totally unnecessary in the first place, because we were only ever calling getTypeLinkage() with builtin types and nominal types. - Furthermore, the structural type walk was doing the wrong thing with nested nominal types, because the linkage of a nested type A.B should not be the intersection of the linkage of A and A.B. If A is an imported type and A.B is defined in an extension of A, we would give the metadata of A.B shared linkage, which is wrong.
2.0 KiB
2.0 KiB