summaryrefslogtreecommitdiff
path: root/unittests/IR/IRBuilderTest.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-01-12 17:44:32 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-01-12 17:44:32 +0000
commit28fbf6cb4aca33dca34d3a5863435566c332cba2 (patch)
tree448bcd8b02a6f62904a38490a45268e664cd37aa /unittests/IR/IRBuilderTest.cpp
parent4afed5d5d29e224123316b34ac85d4c6972d44c6 (diff)
Fix some -Wsign-compare warnings by making some integer literals explicitly unsigned
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR/IRBuilderTest.cpp')
-rw-r--r--unittests/IR/IRBuilderTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/IR/IRBuilderTest.cpp b/unittests/IR/IRBuilderTest.cpp
index 833d13bed83..1812cd39d13 100644
--- a/unittests/IR/IRBuilderTest.cpp
+++ b/unittests/IR/IRBuilderTest.cpp
@@ -458,17 +458,17 @@ TEST_F(IRBuilderTest, DIBuilderMacro) {
auto MUndef1 = DIB.createMacro(TMF1, 7, dwarf::DW_MACINFO_undef, "M1");
EXPECT_EQ(dwarf::DW_MACINFO_define, MDef1->getMacinfoType());
- EXPECT_EQ(3, MDef1->getLine());
+ EXPECT_EQ(3u, MDef1->getLine());
EXPECT_EQ("M1", MDef1->getName());
EXPECT_EQ("V1", MDef1->getValue());
EXPECT_EQ(dwarf::DW_MACINFO_undef, MUndef1->getMacinfoType());
- EXPECT_EQ(7, MUndef1->getLine());
+ EXPECT_EQ(7u, MUndef1->getLine());
EXPECT_EQ("M1", MUndef1->getName());
EXPECT_EQ("", MUndef1->getValue());
EXPECT_EQ(dwarf::DW_MACINFO_start_file, TMF2->getMacinfoType());
- EXPECT_EQ(5, TMF2->getLine());
+ EXPECT_EQ(5u, TMF2->getLine());
EXPECT_EQ(File2, TMF2->getFile());
DIB.finalize();