mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Eliminate spurious uses of ArchetypeType::getRoot().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user