[AST] NFC: Convert InheritedEntry flags to bitfields

This commit is contained in:
Pavel Yaskevich
2024-01-19 10:22:39 -08:00
parent be3539474e
commit 7f6a8f865c
6 changed files with 28 additions and 23 deletions

View File

@@ -1588,11 +1588,12 @@ NominalTypeDecl::takeConformanceLoaderSlow() {
}
InheritedEntry::InheritedEntry(const TypeLoc &typeLoc)
: TypeLoc(typeLoc), isUnchecked(false) {
: InheritedEntry(typeLoc, /*isUnchecked=*/false, /*isRetroactive=*/false,
/*isPreconcurrency=*/false) {
if (auto typeRepr = typeLoc.getTypeRepr()) {
isUnchecked = typeRepr->findAttrLoc(TAK_unchecked).isValid();
isRetroactive = typeRepr->findAttrLoc(TAK_retroactive).isValid();
isPreconcurrency = typeRepr->findAttrLoc(TAK_preconcurrency).isValid();
IsUnchecked = typeRepr->findAttrLoc(TAK_unchecked).isValid();
IsRetroactive = typeRepr->findAttrLoc(TAK_retroactive).isValid();
IsPreconcurrency = typeRepr->findAttrLoc(TAK_preconcurrency).isValid();
}
}