Skip to content

Commit 7c24fae

Browse files
committed
Swift: mangle TypeAliasDecls differently
1 parent 9876c39 commit 7c24fae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

swift/extractor/visitors/DeclVisitor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ std::string DeclVisitor::mangledName(const swift::ValueDecl& decl) {
296296
if (decl.getKind() == swift::DeclKind::Module) {
297297
return static_cast<const swift::ModuleDecl&>(decl).getRealName().str().str();
298298
}
299+
if (decl.getKind() == swift::DeclKind::TypeAlias) {
300+
return mangler.mangleEntity(&decl);
301+
}
299302
// prefix adds a couple of special symbols, we don't necessary need them
300303
return mangler.mangleAnyDecl(&decl, /* prefix = */ false);
301304
}

0 commit comments

Comments
 (0)