[all-commits] [llvm/llvm-project] 1d4fc3: [DWARFVerifier] Fix verification of empty line tab...
Felipe de Azevedo Piovezan via All-commits
all-commits at lists.llvm.org
Thu Feb 8 16:48:16 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1d4fc381d3da4317cc2cfa59b2d59d53decddf71
https://github.com/llvm/llvm-project/commit/1d4fc381d3da4317cc2cfa59b2d59d53decddf71
Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: 2024-02-08 (Thu, 08 Feb 2024)
Changed paths:
M llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
A llvm/test/tools/llvm-dwarfdump/X86/verify_empty_debug_line_sequence.yaml
Log Message:
-----------
[DWARFVerifier] Fix verification of empty line tables (#81162)
A line table whose sole entry is an end sequence should not have the
entry's file index verified, as that value corresponds to the initial
value of the state machine, not to a real file index. In DWARF 5, this
is particularly problematic as it uses 0-based indexing, and the state
machine specifies a starting index of 1; in other words, you'd need to
have _two_ files before such index became legal "by default".
A previous attempt to fix this problem was done [1], but it was too
specific in its condition, and did not capture all possible cases where
this issue can happen.
[1]: https://github.com/llvm/llvm-project/pull/77004
More information about the All-commits
mailing list