Skip to content

Commit 36672f4

Browse files
jketemaPaolo Tranquilli
authored andcommitted
Swift: Take inverses into account when mangling ProtocolCompositionTypes
1 parent 7834a3d commit 36672f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

swift/extractor/mangler/SwiftMangler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ SwiftMangledName SwiftMangler::visitProtocolCompositionType(
371371
for (auto composed : type->getMembers()) {
372372
ret << fetch(composed);
373373
}
374+
for (auto inverse : type->getInverses()) {
375+
ret << (uint8_t)inverse << "_";
376+
}
374377
if (type->hasExplicitAnyObject()) {
375378
ret << "&AnyObject";
376379
}

0 commit comments

Comments
 (0)