diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp index 54f797283061fe..b01507c58ce8b1 100644 --- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp +++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp @@ -1972,7 +1972,7 @@ TEST_F(OpenMPIRBuilderTest, StaticWorkShareLoop) { } TEST_P(OpenMPIRBuilderTestWithIVBits, StaticChunkedWorkshareLoop) { - int IVBits = GetParam(); + unsigned IVBits = GetParam(); using InsertPointTy = OpenMPIRBuilder::InsertPointTy; OpenMPIRBuilder OMPBuilder(*M);