Skip to content

Commit cc8df97

Browse files
author
Alex B
committed
Fix failing test
1 parent ad1d1d0 commit cc8df97

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,25 +2059,25 @@ TEST_F(DebugLineBasicFixture, LookupAddressRangeWithStmtSequenceOffset) {
20592059
dwarfgen::CompileUnit &CU = Gen->addCompileUnit();
20602060
dwarfgen::DIE CUDie = CU.getUnitDIE();
20612061

2062-
CUDie.addAttribute(DW_AT_name, DW_FORM_strp, "/tmp/main.c");
2062+
CUDie.addAttribute(DW_AT_name, DW_FORM_string, "/tmp/main.c");
20632063
CUDie.addAttribute(DW_AT_language, DW_FORM_data2, DW_LANG_C);
20642064

20652065
dwarfgen::DIE SD1 = CUDie.addChild(DW_TAG_subprogram);
2066-
SD1.addAttribute(DW_AT_name, DW_FORM_strp, "sub1");
2066+
SD1.addAttribute(DW_AT_name, DW_FORM_string, "sub1");
20672067
SD1.addAttribute(DW_AT_low_pc, DW_FORM_addr, 0x1000U);
20682068
SD1.addAttribute(DW_AT_high_pc, DW_FORM_addr, 0x1032U);
20692069
// DW_AT_LLVM_stmt_sequence points to the first sequence
20702070
SD1.addAttribute(DW_AT_LLVM_stmt_sequence, DW_FORM_sec_offset, 0x2e);
20712071

20722072
dwarfgen::DIE SD2 = CUDie.addChild(DW_TAG_subprogram);
2073-
SD2.addAttribute(DW_AT_name, DW_FORM_strp, "sub2");
2073+
SD2.addAttribute(DW_AT_name, DW_FORM_string, "sub2");
20742074
SD2.addAttribute(DW_AT_low_pc, DW_FORM_addr, 0x1000U);
20752075
SD2.addAttribute(DW_AT_high_pc, DW_FORM_addr, 0x1032U);
20762076
// DW_AT_LLVM_stmt_sequence points to the second sequence
20772077
SD2.addAttribute(DW_AT_LLVM_stmt_sequence, DW_FORM_sec_offset, 0x42);
20782078

20792079
dwarfgen::DIE SD3 = CUDie.addChild(DW_TAG_subprogram);
2080-
SD3.addAttribute(DW_AT_name, DW_FORM_strp, "sub3");
2080+
SD3.addAttribute(DW_AT_name, DW_FORM_string, "sub3");
20812081
SD3.addAttribute(DW_AT_low_pc, DW_FORM_addr, 0x1000U);
20822082
SD3.addAttribute(DW_AT_high_pc, DW_FORM_addr, 0x1032U);
20832083
// Invalid DW_AT_LLVM_stmt_sequence
@@ -2153,7 +2153,7 @@ TEST_F(DebugLineBasicFixture, LookupAddressRangeWithStmtSequenceOffset) {
21532153
&Sub1Die);
21542154
EXPECT_TRUE(Found);
21552155
ASSERT_EQ(Rows.size(), 1u);
2156-
EXPECT_EQ(Rows[0], 0);
2156+
EXPECT_EQ(Rows[0], 0U);
21572157

21582158
// Look up using Sub2Die, which has a valid DW_AT_LLVM_stmt_sequence and
21592159
// should return row 3
@@ -2163,7 +2163,7 @@ TEST_F(DebugLineBasicFixture, LookupAddressRangeWithStmtSequenceOffset) {
21632163
&Sub2Die);
21642164
EXPECT_TRUE(Found);
21652165
ASSERT_EQ(Rows.size(), 1u);
2166-
EXPECT_EQ(Rows[0], 3);
2166+
EXPECT_EQ(Rows[0], 3u);
21672167
}
21682168
}
21692169
} // end anonymous namespace

0 commit comments

Comments
 (0)