We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac36f9 commit 6e70b39Copy full SHA for 6e70b39
lib/AST/ASTMangler.cpp
@@ -2372,13 +2372,9 @@ CanType ASTMangler::getDeclTypeForMangling(
2372
}
2373
2374
2375
- Type type = decl->getInterfaceType()
2376
- ->getReferenceStorageReferent();
2377
- if (type->hasArchetype()) {
2378
- assert(isa<ParamDecl>(decl) && "Only ParamDecl's still have archetypes");
2379
- type = type->mapTypeOutOfContext();
2380
- }
2381
- CanType canTy = type->getCanonicalType();
+ auto canTy = decl->getInterfaceType()
+ ->getReferenceStorageReferent()
+ ->getCanonicalType();
2382
2383
if (auto gft = dyn_cast<GenericFunctionType>(canTy)) {
2384
genericSig = gft.getGenericSignature();
0 commit comments