We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f26fa8 commit a6fbc59Copy full SHA for a6fbc59
lib/AST/Type.cpp
@@ -3206,14 +3206,8 @@ PrimaryArchetypeType::getNew(const ASTContext &Ctx,
3206
}
3207
3208
bool ArchetypeType::requiresClass() const {
3209
- if (Bits.ArchetypeType.HasSuperclass)
3210
- return true;
3211
if (auto layout = getLayoutConstraint())
3212
- if (layout->isClass())
3213
3214
- for (ProtocolDecl *conformed : getConformsTo())
3215
- if (conformed->requiresClass())
3216
+ return layout->isClass();
3217
return false;
3218
3219
0 commit comments