[llvm] [llvm-profdata] Emit warning when counter value is greater than 2^56. (PR #69513)

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 09:50:29 PDT 2023


================
@@ -202,11 +202,13 @@ class InstrProfReader {
   /// instrprof file.
   static Expected<std::unique_ptr<InstrProfReader>>
   create(const Twine &Path, vfs::FileSystem &FS,
-         const InstrProfCorrelator *Correlator = nullptr);
+         const InstrProfCorrelator *Correlator = nullptr,
+         std::optional<std::function<void(Error)>> MaybeWarnFn = {});
----------------
ZequanWu wrote:

Done.

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


More information about the llvm-commits mailing list