Skip to content

Commit da94834

Browse files
authored
Revert "ASTVerifier: make sure isFinal and FinalAttr are in sync (#26740)"
This reverts commit 387e0d6.
1 parent cfaecfc commit da94834

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/AST/ASTVerifier.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,14 +2362,6 @@ class Verifier : public ASTWalker {
23622362
}
23632363
}
23642364

2365-
if (VD->isFinal() != VD->getAttrs().hasAttribute<FinalAttr>()) {
2366-
Out << "decl should be final iff it has FinalAttr, but isFinal() = "
2367-
<< VD->isFinal() << " and hasAttribute<FinalAttr>() = "
2368-
<< VD->getAttrs().hasAttribute<FinalAttr>() << "\n";
2369-
VD->dump(Out);
2370-
abort();
2371-
}
2372-
23732365
verifyCheckedBase(VD);
23742366
}
23752367

0 commit comments

Comments
 (0)