[clang] Fixes and closes #53952. Setting the ASTHasCompilerErrors member variable correctly based on the PP diagnostics. (PR #68127)

Rajkumar Ananthu via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 4 13:03:04 PDT 2023


================
@@ -4628,6 +4628,12 @@ ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, StringRef OutputFile,
   WritingAST = true;
 
   ASTHasCompilerErrors = hasErrors;
+  bool trueHasErrors = SemaRef.PP.getDiagnostics().hasUncompilableErrorOccurred();
----------------
rajkumarananthu wrote:

Hi Team, Added a new commit by removing the argument `hasErrors` to the method `ASTWriter::WriteAST`.

https://github.com/llvm/llvm-project/pull/68127


More information about the cfe-commits mailing list