SIL: Sink local archetype substitution into remapASTType()

This commit is contained in:
Slava Pestov
2024-05-15 11:50:24 -04:00
parent 3b5846d458
commit 0a0b17a660
4 changed files with 25 additions and 17 deletions

View File

@@ -138,6 +138,9 @@ public:
}
CanType remapASTType(CanType Ty) {
if (Ty->hasLocalArchetype())
Ty = Ty.subst(Functor, Functor)->getCanonicalType();
CMS.makeTypeUsableFromInline(Ty);
return Ty;
}