diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-01-13 20:02:03 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-01-13 20:02:03 +0000 |
commit | fc411a9eb44c912f867b49a08d4ea98be89681d9 (patch) | |
tree | 83d2530c824b866f040519d74b68316c571e0986 /lib/profile/InstrProfilingValue.c | |
parent | 4e3a0d5a8f750527f2f433019967f8f8214c558a (diff) |
Diffstat (limited to 'lib/profile/InstrProfilingValue.c')
-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 39b4da446a81..68e16cff9cbc 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)); |