From 99e0ea0aa846c4bf4d5018064a5dc24e0a07dac7 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 24 Jul 2014 14:24:59 +0000 Subject: Fixing an MSVC conversion warning about implicitly converting the shift results to 64-bits. No functional change intended. llvm-svn: 213863 --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 635117ff0b9..a651eacd1bb 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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(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), -- cgit v1.2.3