projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6800393
)
Fixing an MSVC conversion warning about implicitly converting the shift results to...
author
Aaron Ballman
<aaron@aaronballman.com>
Thu, 24 Jul 2014 14:24:59 +0000
(14:24 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Thu, 24 Jul 2014 14:24:59 +0000
(14:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213863
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index 635117ff0b98c5b7e268daf1c35efb7cca772a7f..a651eacd1bb03747f5599e1391b5af5b143f5f4f 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
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 > (1
ULL
<< (IT->getBitWidth() - 1)))
Index = Builder.CreateZExt(Index,
IntegerType::get(IT->getContext(),
IT->getBitWidth() + 1),