From c0febcb5473260f962ccb4712736441cb325521b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 18 Nov 2025 09:49:29 -0800 Subject: [PATCH] [CAS] Remove redundant casts (NFC) FileOffset::get already returns uint64_t. Identified with readability-redundant-casting. --- llvm/include/llvm/CAS/OnDiskTrieRawHashMap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CAS/OnDiskTrieRawHashMap.h b/llvm/include/llvm/CAS/OnDiskTrieRawHashMap.h index 819058d2ae9af..c3d129cb727da 100644 --- a/llvm/include/llvm/CAS/OnDiskTrieRawHashMap.h +++ b/llvm/include/llvm/CAS/OnDiskTrieRawHashMap.h @@ -118,8 +118,8 @@ class OnDiskTrieRawHashMap { protected: PointerImpl(ProxyT Value, FileOffset Offset, bool IsValue = true) - : Value(Value), OffsetLow32((uint64_t)Offset.get()), - OffsetHigh16((uint64_t)Offset.get() >> 32), IsValue(IsValue) { + : Value(Value), OffsetLow32(Offset.get()), + OffsetHigh16(Offset.get() >> 32), IsValue(IsValue) { if (IsValue) assert(validOffset(Offset)); }