Skip to content

Commit 6e70b39

Browse files
committed
IDE: Remove workaround for rdar://problem/54310026
1 parent fac36f9 commit 6e70b39

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/AST/ASTMangler.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,13 +2372,9 @@ CanType ASTMangler::getDeclTypeForMangling(
23722372
}
23732373

23742374

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();
2375+
auto canTy = decl->getInterfaceType()
2376+
->getReferenceStorageReferent()
2377+
->getCanonicalType();
23822378

23832379
if (auto gft = dyn_cast<GenericFunctionType>(canTy)) {
23842380
genericSig = gft.getGenericSignature();

0 commit comments

Comments
 (0)