mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: Update mangling of OpenedArchetypeType
This commit is contained in:
committed by
Paolo Tranquilli
parent
1ac47a892b
commit
4fc5a73bac
@@ -6,8 +6,8 @@
|
||||
#include <swift/AST/Module.h>
|
||||
#include <swift/AST/ParameterList.h>
|
||||
#include <swift/AST/ASTContext.h>
|
||||
#include <swift/AST/GenericEnvironment.h>
|
||||
#include <swift/AST/GenericParamList.h>
|
||||
#include <sstream>
|
||||
|
||||
using namespace codeql;
|
||||
|
||||
@@ -353,10 +353,10 @@ SwiftMangledName SwiftMangler::visitOpaqueTypeArchetypeType(
|
||||
}
|
||||
|
||||
SwiftMangledName SwiftMangler::visitOpenedArchetypeType(const swift::OpenedArchetypeType* type) {
|
||||
// llvm::SmallVector<char> uuid;
|
||||
// type->getOpenedExistentialID().toString(uuid); // <- doesn't compile any more
|
||||
// return visitArchetypeType(type) << std::string_view(uuid.data(), uuid.size());
|
||||
return visitArchetypeType(type);
|
||||
auto *env = type->getGenericEnvironment();
|
||||
llvm::SmallVector<char> uuid;
|
||||
env->getOpenedExistentialUUID().toString(uuid);
|
||||
return visitArchetypeType(type) << std::string_view(uuid.data(), uuid.size());
|
||||
}
|
||||
|
||||
SwiftMangledName SwiftMangler::visitProtocolCompositionType(
|
||||
|
||||
Reference in New Issue
Block a user