diff options
-rw-r--r-- | lib/profile/InstrProfiling.c | 2 | ||||
-rw-r--r-- | lib/profile/InstrProfilingValue.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/profile/InstrProfiling.c b/lib/profile/InstrProfiling.c index 711f2b608..24820ec6d 100644 --- a/lib/profile/InstrProfiling.c +++ b/lib/profile/InstrProfiling.c @@ -46,7 +46,7 @@ COMPILER_RT_VISIBILITY void __llvm_profile_reset_counters(void) { const __llvm_profile_data *DataBegin = __llvm_profile_begin_data(); const __llvm_profile_data *DataEnd = __llvm_profile_end_data(); const __llvm_profile_data *DI; - for (DI = DataBegin; DI != DataEnd; ++DI) { + for (DI = DataBegin; DI < DataEnd; ++DI) { uint64_t CurrentVSiteCount = 0; uint32_t VKI, i; if (!DI->Values) diff --git a/lib/profile/InstrProfilingValue.c b/lib/profile/InstrProfilingValue.c index 68e16cff9..bc15c7811 100644 --- a/lib/profile/InstrProfilingValue.c +++ b/lib/profile/InstrProfilingValue.c @@ -151,7 +151,7 @@ __llvm_profile_gather_value_data(uint64_t *ValueDataSize) { * Compute the total Size of the buffer to hold ValueProfData * structures for functions with value profile data. */ - for (I = (__llvm_profile_data *)DataBegin; I != DataEnd; ++I) { + for (I = (__llvm_profile_data *)DataBegin; I < DataEnd; ++I) { ValueProfRuntimeRecord R; if (initializeValueProfRuntimeRecord(&R, I->NumValueSites, I->Values)) PROF_OOM_RETURN("Failed to write value profile data "); |