File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
test/tools/llvm-dwarfdump Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -944,8 +944,8 @@ void DWARFVerifier::verifyDebugLineRows() {
944944 // row, do not verify the file index, this is a line table of an empty
945945 // file with an end_sequence, but the DWARF standard sets the file number
946946 // to 1 by default, otherwise verify file index.
947- if (! (LineTable->Prologue .FileNames .size () == 0 &&
948- LineTable->Rows .size () = = 1 ) &&
947+ if ((LineTable->Prologue .FileNames .size () ||
948+ LineTable->Rows .size () ! = 1 ) &&
949949 !LineTable->hasFileAtIndex (Row.File )) {
950950 ++NumDebugLineErrors;
951951 error () << " .debug_line["
Original file line number Diff line number Diff line change 1- # RUN: rm -rf %t && mkdir -p %t
2- # RUN: yaml2obj %s -o %t/test.o
3- # RUN: llvm-dwarfdump --debug-line --verify %t/test.o 2>&1 | FileCheck %s
1+ # RUN: yaml2obj %s -o %t.o
2+ # RUN: llvm-dwarfdump --debug-line --verify %t.o 2>&1 | FileCheck %s
43
54# CHECK-NOT: error: .debug_line[0x{{[0-9a-f]+}}][0] has invalid file index 1 (valid values are [1,0]):
65--- !mach-o
You can’t perform that action at this time.
0 commit comments