Commit b73742bc authored by Arthur Eubanks's avatar Arthur Eubanks
Browse files

[Profile] Remove redundant check

This is already checked outside the loop.

Followup to D104050.
parent fc018ebb
......@@ -109,7 +109,7 @@ int __llvm_profile_merge_from_buffer(const char *ProfileData,
unsigned NVK = 0;
unsigned NC = SrcData->NumCounters;
if (NC == 0 || (const char *)SrcCountersStart >= SrcNameStart)
if (NC == 0)
return 1;
uint64_t *SrcCounters = SrcCountersStart + ((size_t)SrcData->CounterPtr -
Header->CountersDelta) /
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment