[llvm] [Profile] Add a more descriptive message to the bad_header error (PR #211281)

Wael Yehia via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 21:20:36 PDT 2026


================
@@ -101,6 +101,10 @@ static std::string getInstrProfErrString(instrprof_error Err,
   case instrprof_error::bad_header:
     OS << "invalid instrumentation profile data (file header is corrupt)";
     break;
+  case instrprof_error::header_size_mismatch:
+    OS << "profile file size does not match header expectations (file may be "
----------------
w2yehia wrote:

done

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


More information about the llvm-commits mailing list