[llvm] 943fc12 - [NFC][AttributesTest] Fix signedness warnings
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 09:12:33 PST 2023
Author: Roman Lebedev
Date: 2023-01-05T20:11:56+03:00
New Revision: 943fc12d87836b74e5af14c3677842b1ab3ccfa8
URL: https://github.com/llvm/llvm-project/commit/943fc12d87836b74e5af14c3677842b1ab3ccfa8
DIFF: https://github.com/llvm/llvm-project/commit/943fc12d87836b74e5af14c3677842b1ab3ccfa8.diff
LOG: [NFC][AttributesTest] Fix signedness warnings
Added:
Modified:
llvm/unittests/IR/AttributesTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/AttributesTest.cpp b/llvm/unittests/IR/AttributesTest.cpp
index 5883ad71f9f6..608bb79fdb6d 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
More information about the llvm-commits
mailing list