diff options
author | Xinliang David Li <davidxl@google.com> | 2016-01-08 06:03:19 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-01-08 06:03:19 +0000 |
commit | 953d853de28c67c6f8ae29fd9d99767c4d96a64e (patch) | |
tree | 3e25fdaf7acd5a0c71cbc78d2fdeac1c3d72f17d | |
parent | fbd7bd7f46eaaeaee5657a3fee97120f81651755 (diff) | |
download | compiler-rt-953d853de28c67c6f8ae29fd9d99767c4d96a64e.tar.gz |
[PGO] Use new macro introduced/NFC
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@257147 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/profile/InstrProfilingValue.c | 2 |
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)); |