We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a926458 + 69c7015 commit fb65bceCopy full SHA for fb65bce
llvm/lib/ProfileData/InstrProfReader.cpp
@@ -1295,7 +1295,7 @@ Error IndexedInstrProfReader::readHeader() {
1295
// Writer first writes the length of compressed string, and then the actual
1296
// content.
1297
const char *VTableNamePtr = (const char *)Ptr;
1298
- if (VTableNamePtr > (const char *)DataBuffer->getBufferEnd())
+ if (VTableNamePtr > DataBuffer->getBufferEnd())
1299
return make_error<InstrProfError>(instrprof_error::truncated);
1300
1301
VTableName = StringRef(VTableNamePtr, CompressedVTableNamesLen);
0 commit comments