Fixing an MSVC conversion warning about implicitly converting the shift results to 64-bits. No functional change intended.

llvm-svn: 213863
This commit is contained in:
Aaron Ballman 2014-07-24 14:24:59 +00:00
parent 0cffc8a265
commit 99e0ea0aa8
1 changed files with 1 additions and 1 deletions

View File

@ -3627,7 +3627,7 @@ Value *SwitchLookupTable::BuildLookup(Value *Index, uint64_t TableSize,
case ArrayKind: { case ArrayKind: {
// Make sure the table index will not overflow when treated as signed. // Make sure the table index will not overflow when treated as signed.
if (IntegerType *IT = dyn_cast<IntegerType>(Index->getType())) if (IntegerType *IT = dyn_cast<IntegerType>(Index->getType()))
if (TableSize > (1 << (IT->getBitWidth() - 1))) if (TableSize > (1ULL << (IT->getBitWidth() - 1)))
Index = Builder.CreateZExt(Index, Index = Builder.CreateZExt(Index,
IntegerType::get(IT->getContext(), IntegerType::get(IT->getContext(),
IT->getBitWidth() + 1), IT->getBitWidth() + 1),