Eliminate spurious uses of ArchetypeType::getRoot().

This commit is contained in:
Doug Gregor
2022-01-19 09:54:34 -08:00
parent 588c7608ee
commit 209167ae30
11 changed files with 24 additions and 25 deletions

View File

@@ -981,7 +981,7 @@ public:
return true;
}
if (auto archetype = dyn_cast<ArchetypeType>(type)) {
return !isa<OpaqueTypeArchetypeType>(archetype->getRoot());
return !isa<OpaqueTypeArchetypeType>(archetype);
}
return false;
}