================ @@ -1110,6 +1110,8 @@ Decl *Parser::ParseStaticAssertDeclaration(SourceLocation &DeclEnd) { } T.consumeClose(); + if (T.getCloseLocation().isInvalid()) + return nullptr; ---------------- a-tarasyuk wrote:
@cor3ntin Thanks for the review. I've added changes to omit redundant checks. https://github.com/llvm/llvm-project/pull/108701 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits