Skip to content

Commit b17af9d

Browse files
authored
[NFC][llvm/IR] comparison of unsigned expression in ‘>= 0’ is always true (#130843)
1 parent 0f1175c commit b17af9d

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)