Skip to content

Commit f90caa9

Browse files
committed
comparison of unsigned expression in ‘>= 0’ is always true
1 parent 8132c4f commit f90caa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5044,7 +5044,7 @@ static void upgradeNVVMFnVectorAttr(const StringRef Attr, const char DimC,
50445044
}
50455045

50465046
const unsigned Dim = DimC - 'x';
5047-
assert(Dim >= 0 && Dim < 3 && "Unexpected dim char");
5047+
assert(Dim < 3 && "Unexpected dim char");
50485048

50495049
const uint64_t VInt = mdconst::extract<ConstantInt>(V)->getZExtValue();
50505050

0 commit comments

Comments
 (0)