mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Swift: mangle AnyGenericType
This commit is contained in:
@@ -95,3 +95,9 @@ SwiftMangledName SwiftMangler::visitBuiltinType(const swift::BuiltinType* type)
|
||||
ret << buffer.str();
|
||||
return ret;
|
||||
}
|
||||
|
||||
SwiftMangledName SwiftMangler::visitAnyGenericType(const swift::AnyGenericType* type) {
|
||||
auto ret = initMangled(type);
|
||||
ret << dispatcher.fetchLabel(type->getDecl());
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ class SwiftMangler : private swift::TypeVisitor<SwiftMangler, SwiftMangledName>,
|
||||
SwiftMangledName visitModuleType(const swift::ModuleType* type);
|
||||
SwiftMangledName visitTupleType(const swift::TupleType* type);
|
||||
SwiftMangledName visitBuiltinType(const swift::BuiltinType* type);
|
||||
SwiftMangledName visitAnyGenericType(const swift::AnyGenericType* type);
|
||||
|
||||
SwiftMangledName visitBuiltinType(const swift::BuiltinType* type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user