Skip to content

Commit 0394888

Browse files
committed
Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC
NumBits should be less than 20 so using an unsigned instead of size_t should be OK
1 parent 652988b commit 0394888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/TrieRawHashMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class TrieSubtrie final
7979

8080
static constexpr size_t sizeToAlloc(unsigned NumBits) {
8181
assert(NumBits < 20 && "Tries should have fewer than ~1M slots");
82-
size_t Count = 1u << NumBits;
82+
unsigned Count = 1u << NumBits;
8383
return totalSizeToAlloc<LazyAtomicPointer<TrieNode>>(Count);
8484
}
8585

0 commit comments

Comments
 (0)