Merge pull request #26690 from varungandhi-apple/vg-refactor-validateExtension

Avoid setting the extendedType before and after computing the generic signature.
This commit is contained in:
Varun Gandhi
2019-08-19 14:04:03 -07:00
committed by GitHub
12 changed files with 107 additions and 78 deletions

View File

@@ -2871,7 +2871,6 @@ public:
auto contextID = S.addDeclContextRef(extension->getDeclContext());
Type baseTy = extension->getExtendedType();
assert(!baseTy->hasUnboundGenericType());
assert(!baseTy->hasArchetype());
// FIXME: Use the canonical type here in order to minimize circularity