Skip to content

Commit 564e377

Browse files
committed
setInvalid on attr
1 parent bf4aaac commit 564e377

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,6 +2464,7 @@ void AttributeChecker::visitImplementsAttr(ImplementsAttr *attr) {
24642464
void AttributeChecker::visitFrozenAttr(FrozenAttr *attr) {
24652465
if (auto *ED = dyn_cast<EnumDecl>(D)) {
24662466
if (!ED->getModuleContext()->isResilient()) {
2467+
attr->setInvalid();
24672468
return;
24682469
}
24692470

0 commit comments

Comments
 (0)