================ @@ -180,7 +180,7 @@ namespace { bool HandleTopLevelDecl(DeclGroupRef DG) override { // FIXME: Why not return false and abort parsing? - if (Diags.hasErrorOccurred()) + if (Diags.hasUnrecoverableErrorOccurred()) ---------------- ostannard wrote:
I think this is reasonable, it allows codegen to continue if all of the errors which have occurred are downgradable, which happens before this change if the correct `-Wno-whatever` or `-Wno-error=whatever` option is used. We still bail out here if any of the errors are unrecoverable. https://github.com/llvm/llvm-project/pull/84146 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits