[ProfileData] Remove an unnecessary cast (NFC) (#150472)
getBufferEnd() already returns const char *.
This commit is contained in:
parent
a608b0c7ca
commit
69c7015a55
@ -1295,7 +1295,7 @@ Error IndexedInstrProfReader::readHeader() {
|
||||
// Writer first writes the length of compressed string, and then the actual
|
||||
// content.
|
||||
const char *VTableNamePtr = (const char *)Ptr;
|
||||
if (VTableNamePtr > (const char *)DataBuffer->getBufferEnd())
|
||||
if (VTableNamePtr > DataBuffer->getBufferEnd())
|
||||
return make_error<InstrProfError>(instrprof_error::truncated);
|
||||
|
||||
VTableName = StringRef(VTableNamePtr, CompressedVTableNamesLen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user