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

William Junda Huang via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 14:22:18 PDT 2023


================
@@ -38,6 +38,9 @@
 
 using namespace llvm;
 
+// Maxium counter value 2^56.
+static uint64_t MaxCounterValue = 0xffffffffffffff;
----------------
huangjd wrote:

Constant should be declared in a header 

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


More information about the llvm-commits mailing list