mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Fixing an MSVC conversion warning about implicitly converting the shift results to 64-bits. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6800393083
commit
e8d5c379ac
@ -3627,7 +3627,7 @@ Value *SwitchLookupTable::BuildLookup(Value *Index, uint64_t TableSize,
|
||||
case ArrayKind: {
|
||||
// Make sure the table index will not overflow when treated as signed.
|
||||
if (IntegerType *IT = dyn_cast<IntegerType>(Index->getType()))
|
||||
if (TableSize > (1 << (IT->getBitWidth() - 1)))
|
||||
if (TableSize > (1ULL << (IT->getBitWidth() - 1)))
|
||||
Index = Builder.CreateZExt(Index,
|
||||
IntegerType::get(IT->getContext(),
|
||||
IT->getBitWidth() + 1),
|
||||
|
Loading…
Reference in New Issue
Block a user