Skip to content

Commit bf2a634

Browse files
[CAS] Remove a redundant cast (NFC)
D.Offset.get() already returns uint64_t. Identified with readability-redundant-casting.
1 parent d831f8d commit bf2a634

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CAS/OnDiskGraphDB.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,7 @@ Error OnDiskGraphDB::validate(bool Deep, HashingFuncT Hasher) const {
938938
// Check offset is a postive value, and large enough to hold the
939939
// header for the data record.
940940
if (D.Offset.get() <= 0 ||
941-
(uint64_t)D.Offset.get() + sizeof(DataRecordHandle::Header) >=
942-
DataPool.size())
941+
D.Offset.get() + sizeof(DataRecordHandle::Header) >= DataPool.size())
943942
return formatError("datapool record out of bound");
944943
break;
945944
case TrieRecord::StorageKind::Standalone:

0 commit comments

Comments
 (0)