summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-07-24 14:24:59 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-07-24 14:24:59 +0000
commit99e0ea0aa846c4bf4d5018064a5dc24e0a07dac7 (patch)
tree2d6fa3c3538bd45d59cb91ee55d4f0b269f4a301 /llvm
parent0cffc8a2650c336f4821e065b23889fa570a4415 (diff)
downloadbcm5719-llvm-99e0ea0aa846c4bf4d5018064a5dc24e0a07dac7.tar.gz
bcm5719-llvm-99e0ea0aa846c4bf4d5018064a5dc24e0a07dac7.zip
Fixing an MSVC conversion warning about implicitly converting the shift results to 64-bits. No functional change intended.
llvm-svn: 213863
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
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<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),
OpenPOWER on IntegriCloud