Skip to content

Commit f0576d0

Browse files
committed
---
yaml --- r: 348870 b: refs/heads/master c: 6e70b39 h: refs/heads/master
1 parent fc03264 commit f0576d0

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fac36f95b0469766c0c0ce05b7d6543d8dc31c35
2+
refs/heads/master: 6e70b397a7fc654b3bfa08f79c90f1cc71b9e719
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/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)