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 6
6
#include < swift/AST/Module.h>
7
7
#include < swift/AST/ParameterList.h>
8
8
#include < swift/AST/ASTContext.h>
9
+ #include < swift/AST/GenericEnvironment.h>
9
10
#include < swift/AST/GenericParamList.h>
10
- #include < sstream>
11
11
12
12
using namespace codeql ;
13
13
@@ -353,10 +353,10 @@ SwiftMangledName SwiftMangler::visitOpaqueTypeArchetypeType(
353
353
}
354
354
355
355
SwiftMangledName 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 ()) ;
360
360
}
361
361
362
362
SwiftMangledName SwiftMangler::visitProtocolCompositionType (
You can’t perform that action at this time.
0 commit comments