diff --git a/llvm/lib/CAS/OnDiskTrieRawHashMap.cpp b/llvm/lib/CAS/OnDiskTrieRawHashMap.cpp index 9b382dd749ea5..940389336ce22 100644 --- a/llvm/lib/CAS/OnDiskTrieRawHashMap.cpp +++ b/llvm/lib/CAS/OnDiskTrieRawHashMap.cpp @@ -114,7 +114,7 @@ class SubtrieHandle { using SlotT = std::atomic; static int64_t getSlotsSize(uint32_t NumBits) { - return sizeof(int64_t) * (1u << NumBits); + return sizeof(int64_t) * (1ull << NumBits); } static int64_t getSize(uint32_t NumBits) { @@ -191,7 +191,8 @@ class SubtrieHandle { MutableArrayRef Slots; static MutableArrayRef getSlots(Header &H) { - return MutableArrayRef(reinterpret_cast(&H + 1), 1u << H.NumBits); + return MutableArrayRef(reinterpret_cast(&H + 1), + 1ull << H.NumBits); } };