From 943fc12d87836b74e5af14c3677842b1ab3ccfa8 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 5 Jan 2023 20:10:35 +0300 Subject: [PATCH] [NFC][AttributesTest] Fix signedness warnings --- llvm/unittests/IR/AttributesTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/unittests/IR/AttributesTest.cpp b/llvm/unittests/IR/AttributesTest.cpp index 5883ad7..608bb79 100644 --- a/llvm/unittests/IR/AttributesTest.cpp +++ b/llvm/unittests/IR/AttributesTest.cpp @@ -298,13 +298,13 @@ TEST(Attributes, RemoveParamAttributes) { LLVMContext C; AttributeList AL; AL = AL.addParamAttribute(C, 1, Attribute::NoUndef); - EXPECT_EQ(AL.getNumAttrSets(), 4); + EXPECT_EQ(AL.getNumAttrSets(), 4U); AL = AL.addParamAttribute(C, 3, Attribute::NonNull); - EXPECT_EQ(AL.getNumAttrSets(), 6); + EXPECT_EQ(AL.getNumAttrSets(), 6U); AL = AL.removeParamAttributes(C, 3); - EXPECT_EQ(AL.getNumAttrSets(), 4); + EXPECT_EQ(AL.getNumAttrSets(), 4U); AL = AL.removeParamAttribute(C, 1, Attribute::NoUndef); - EXPECT_EQ(AL.getNumAttrSets(), 0); + EXPECT_EQ(AL.getNumAttrSets(), 0U); } } // end anonymous namespace -- 2.7.4