summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingValue.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-08 06:03:19 +0000
committerXinliang David Li <davidxl@google.com>2016-01-08 06:03:19 +0000
commit953d853de28c67c6f8ae29fd9d99767c4d96a64e (patch)
tree3e25fdaf7acd5a0c71cbc78d2fdeac1c3d72f17d /lib/profile/InstrProfilingValue.c
parentfbd7bd7f46eaaeaee5657a3fee97120f81651755 (diff)
[PGO] Use new macro introduced/NFC
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@257147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingValue.c')
-rw-r--r--lib/profile/InstrProfilingValue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/profile/InstrProfilingValue.c b/lib/profile/InstrProfilingValue.c
index 39b4da446..68e16cff9 100644
--- a/lib/profile/InstrProfilingValue.c
+++ b/lib/profile/InstrProfilingValue.c
@@ -107,7 +107,7 @@ __llvm_profile_instrument_target(uint64_t TargetValue, void *Data,
++VDataCount;
}
- if (VDataCount >= UCHAR_MAX)
+ if (VDataCount >= INSTR_PROF_MAX_NUM_VAL_PER_SITE)
return;
CurrentVNode = (ValueProfNode *)calloc(1, sizeof(ValueProfNode));