Skip to content

Commit 5f3b454

Browse files
kazutakahirataPriyanshu3820
authored andcommitted
[CAS] Remove redundant casts (NFC) (llvm#169002)
FileOffset::get already returns uint64_t. Identified with readability-redundant-casting.
1 parent cb75f30 commit 5f3b454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/CAS/OnDiskTrieRawHashMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ class OnDiskTrieRawHashMap {
118118

119119
protected:
120120
PointerImpl(ProxyT Value, FileOffset Offset, bool IsValue = true)
121-
: Value(Value), OffsetLow32((uint64_t)Offset.get()),
122-
OffsetHigh16((uint64_t)Offset.get() >> 32), IsValue(IsValue) {
121+
: Value(Value), OffsetLow32(Offset.get()),
122+
OffsetHigh16(Offset.get() >> 32), IsValue(IsValue) {
123123
if (IsValue)
124124
assert(validOffset(Offset));
125125
}

0 commit comments

Comments
 (0)