[PATCH] D149361: [profiling] Improve error message for raw profile header mismatches

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 14:48:31 PDT 2023


paquette added inline comments.


================
Comment at: llvm/tools/llvm-profdata/llvm-profdata.cpp:311
     // Skip the empty profiles by returning silently.
-    instrprof_error IPE = InstrProfError::take(std::move(E));
-    if (IPE != instrprof_error::empty_raw_profile)
-      WC->Errors.emplace_back(make_error<InstrProfError>(IPE), Filename);
+    // instrprof_error IPE = InstrProfError::take(std::move(E));
+    auto [ErrCode, Msg] = InstrProfError::take(std::move(E));
----------------
will remove this when I push


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

https://reviews.llvm.org/D149361



More information about the llvm-commits mailing list