[PATCH] D132991: [Clang] Give error message for invalid profile path when compiling IR

Rong Xu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 31 10:23:20 PDT 2022


xur added a comment.

I'm fine with this change.



================
Comment at: clang/lib/Frontend/CompilerInvocation.cpp:1301
+    unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
+                                            "Could not read profile %0: %1");
+    llvm::handleAllErrors(std::move(E), [&](const llvm::ErrorInfoBase &EI) {
----------------
Should we use "Error in reading profile ..."?
Reader still can return error even if the profile can be read.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132991/new/

https://reviews.llvm.org/D132991



More information about the cfe-commits mailing list