[PATCH] D25687: [PGO] fix bogus warning for merging empty llvm profile file

David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 11:52:45 PDT 2016


davidxl added a comment.

A test case is needed.



================
Comment at: tools/llvm-profdata/llvm-profdata.cpp:159
   for (auto &I : *Reader) {
+    const StringRef FuncName = I.Name;
     if (Error E = WC->Writer.addRecord(std::move(I), Input.Weight)) {
----------------
unrelated change?


https://reviews.llvm.org/D25687





More information about the llvm-commits mailing list