mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Sink local archetype substitution into remapASTType()
This commit is contained in:
@@ -138,6 +138,9 @@ public:
|
||||
}
|
||||
|
||||
CanType remapASTType(CanType Ty) {
|
||||
if (Ty->hasLocalArchetype())
|
||||
Ty = Ty.subst(Functor, Functor)->getCanonicalType();
|
||||
|
||||
CMS.makeTypeUsableFromInline(Ty);
|
||||
return Ty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user