Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 4d0f917

Browse files
committed
Remove gcc warning when comparing an unsigned var for >= 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247352 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3f3f976 commit 4d0f917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Transforms/Utils/SimplifyCFG.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3430,7 +3430,7 @@ static bool EliminateDeadSwitchCases(SwitchInst *SI, AssumptionCache *AC,
34303430
!isa<UnreachableInst>(SI->getDefaultDest()->getFirstNonPHIOrDbg());
34313431
const unsigned NumUnknownBits = Bits -
34323432
(KnownZero.Or(KnownOne)).countPopulation();
3433-
assert(0 <= NumUnknownBits && NumUnknownBits <= Bits);
3433+
assert(NumUnknownBits <= Bits);
34343434
if (HasDefault && DeadCases.empty() &&
34353435
NumUnknownBits < 64 /* avoid overflow */ &&
34363436
SI->getNumCases() == (1ULL << NumUnknownBits)) {

0 commit comments

Comments
 (0)