File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 66#include < swift/AST/Module.h>
77#include < swift/AST/ParameterList.h>
88#include < swift/AST/ASTContext.h>
9+ #include < swift/AST/GenericEnvironment.h>
910#include < swift/AST/GenericParamList.h>
10- #include < sstream>
1111
1212using namespace codeql ;
1313
@@ -353,10 +353,10 @@ SwiftMangledName SwiftMangler::visitOpaqueTypeArchetypeType(
353353}
354354
355355SwiftMangledName SwiftMangler::visitOpenedArchetypeType (const swift::OpenedArchetypeType* type) {
356- // llvm::SmallVector<char> uuid ;
357- // type->getOpenedExistentialID().toString( uuid); // <- doesn't compile any more
358- // return visitArchetypeType(type) << std::string_view(uuid.data(), uuid.size() );
359- return visitArchetypeType (type);
356+ auto *env = type-> getGenericEnvironment () ;
357+ llvm::SmallVector< char > uuid;
358+ env-> getOpenedExistentialUUID (). toString ( uuid);
359+ return visitArchetypeType (type) << std::string_view (uuid. data (), uuid. size ()) ;
360360}
361361
362362SwiftMangledName SwiftMangler::visitProtocolCompositionType (
You can’t perform that action at this time.
0 commit comments