llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Cyndy Ishida (cyndyishida) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/172718.diff 2 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticFrontendKinds.td (+1-2) - (modified) clang/lib/Frontend/ASTUnit.cpp (+2-2) ``````````diff diff --git a/clang/include/clang/Basic/DiagnosticFrontendKinds.td b/clang/include/clang/Basic/DiagnosticFrontendKinds.td index 9e344160ff934..faa3378c07d43 100644 --- a/clang/include/clang/Basic/DiagnosticFrontendKinds.td +++ b/clang/include/clang/Basic/DiagnosticFrontendKinds.td @@ -109,8 +109,7 @@ def err_fe_expected_clang_command : Error< "expected a clang compiler command">; def err_fe_remap_missing_to_file : Error< "could not remap file '%0' to the contents of file '%1'">, DefaultFatal; -def err_fe_unable_to_load_pch : Error< - "unable to load PCH file">; +def err_fe_unable_to_load_ast_file : Error<"unable to load precompiled file">; def err_fe_unable_to_load_plugin : Error< "unable to load plugin '%0': '%1'">; def err_fe_unable_to_create_target : Error< diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index e72317da64596..f350893f56b08 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -745,7 +745,7 @@ std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile( Filename, TmpFileMgr, *AST->ModCache, PCHContainerRdr, /*FindModuleFileExtensions=*/true, Collector, /*ValidateDiagnosticOptions=*/true, ASTReader::ARR_None)) { - AST->getDiagnostics().Report(diag::err_fe_unable_to_load_pch); + AST->getDiagnostics().Report(diag::err_fe_unable_to_load_ast_file); return nullptr; } @@ -847,7 +847,7 @@ std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile( case ASTReader::VersionMismatch: case ASTReader::ConfigurationMismatch: case ASTReader::HadErrors: - AST->getDiagnostics().Report(diag::err_fe_unable_to_load_pch); + AST->getDiagnostics().Report(diag::err_fe_unable_to_load_ast_file); return nullptr; } `````````` </details> https://github.com/llvm/llvm-project/pull/172718 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
