File tree 2 files changed +4
-5
lines changed
test/tools/llvm-dwarfdump
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -944,8 +944,8 @@ void DWARFVerifier::verifyDebugLineRows() {
944
944
// row, do not verify the file index, this is a line table of an empty
945
945
// file with an end_sequence, but the DWARF standard sets the file number
946
946
// 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 ) &&
949
949
!LineTable->hasFileAtIndex (Row.File )) {
950
950
++NumDebugLineErrors;
951
951
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
4
3
5
4
# CHECK-NOT: error: .debug_line[0x{{[0-9a-f]+}}][0] has invalid file index 1 (valid values are [1,0]):
6
5
--- !mach-o
You can’t perform that action at this time.
0 commit comments