[PATCH] D92074: [llvm-profdata] Emit Error when Invalid MemOpSize Section is Created by llvm-profdata

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 12:46:27 PST 2021


davidxl added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp:342
   unsigned Version = 0;
+  int64_t LastV = 1;
   // Default case is in the front -- save the slot here.
----------------
This initial value mean leads to false warning. Use -1.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92074



More information about the llvm-commits mailing list