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:
3f3f976
)
Remove gcc warning when comparing an unsigned var for >= 0
author
Filipe Cabecinhas
<me@filcab.net>
Thu, 10 Sep 2015 22:34:39 +0000
(22:34 +0000)
committer
Filipe Cabecinhas
<me@filcab.net>
Thu, 10 Sep 2015 22:34:39 +0000
(22:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247352
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 b02d2923b8ee95b20d14ccdec7cad9f441697f4e..37ddc0ac862ffafd2c54f7b617225e2dfcfb9196 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
lib/Transforms/Utils/SimplifyCFG.cpp
@@
-3430,7
+3430,7
@@
static bool EliminateDeadSwitchCases(SwitchInst *SI, AssumptionCache *AC,
!isa<UnreachableInst>(SI->getDefaultDest()->getFirstNonPHIOrDbg());
const unsigned NumUnknownBits = Bits -
(KnownZero.Or(KnownOne)).countPopulation();
- assert(
0 <= NumUnknownBits &&
NumUnknownBits <= Bits);
+ assert(NumUnknownBits <= Bits);
if (HasDefault && DeadCases.empty() &&
NumUnknownBits < 64 /* avoid overflow */ &&
SI->getNumCases() == (1ULL << NumUnknownBits)) {