From a55dec7d64ef128a03deae7dd9bc1ed97cd123b4 Mon Sep 17 00:00:00 2001 From: James Henderson Date: Fri, 14 Feb 2020 13:39:41 +0000 Subject: [PATCH] [test][DebugInfo] Fix signed/unsigned comparison problem in test This caused build bot failures: http://lab.llvm.org:8011/builders/ppc64le-lld-multistage-test/builds/8568/ --- llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp index 0552b5a..a622c84 100644 --- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp @@ -670,7 +670,7 @@ TEST_F(DebugLineBasicFixture, ASSERT_EQ((*ExpectedLineTable)->Rows.size(), 3u); EXPECT_EQ((*ExpectedLineTable)->Sequences.size(), 1u); // Show that the set address opcode is ignored in this case. - EXPECT_EQ((*ExpectedLineTable)->Rows[0].Address.Address, 0); + EXPECT_EQ((*ExpectedLineTable)->Rows[0].Address.Address, 0u); } TEST_F(DebugLineBasicFixture, ErrorForAddressSizeGreaterThanByteSize) { @@ -731,7 +731,7 @@ TEST_F(DebugLineBasicFixture, ErrorForUnsupportedAddressSizeDefinedInHeader) { ASSERT_EQ((*ExpectedLineTable)->Rows.size(), 3u); EXPECT_EQ((*ExpectedLineTable)->Sequences.size(), 1u); // Show that the set address opcode is ignored in this case. - EXPECT_EQ((*ExpectedLineTable)->Rows[0].Address.Address, 0); + EXPECT_EQ((*ExpectedLineTable)->Rows[0].Address.Address, 0u); } TEST_F(DebugLineBasicFixture, CallbackUsedForUnterminatedSequence) { -- 2.7.4