diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp index 0755a8cc6673..f5f6594b8363 100644 --- a/llvm/unittests/ADT/APIntTest.cpp +++ b/llvm/unittests/ADT/APIntTest.cpp @@ -2507,7 +2507,7 @@ TEST(APIntTest, SolveQuadraticEquationWrap) { TEST(APIntTest, MultiplicativeInverseExaustive) { for (unsigned BitWidth = 1; BitWidth <= 16; ++BitWidth) { - for (unsigned Value = 0; Value < (1 << BitWidth); ++Value) { + for (unsigned Value = 0; Value < (1u << BitWidth); ++Value) { APInt V = APInt(BitWidth, Value); APInt MulInv = V.zext(BitWidth + 1)