diff options
author | alx32 <103613512+alx32@users.noreply.github.com> | 2025-03-26 17:04:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-26 17:04:27 -0700 |
commit | f1dad0bcb58f2b8bf0d847d4a65909b797be4fa1 (patch) | |
tree | 94450fd4c39d33d4d6dafbd1ff7f39ef61f7ceeb /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 7da71a6b7132be8db76c67e34a2ba497bf851779 (diff) | |
download | llvm-f1dad0bcb58f2b8bf0d847d4a65909b797be4fa1.zip llvm-f1dad0bcb58f2b8bf0d847d4a65909b797be4fa1.tar.gz llvm-f1dad0bcb58f2b8bf0d847d4a65909b797be4fa1.tar.bz2 |
[DWARFLinker] Handle empty sequences when processing `DW_AT_LLVM_stmt_sequence` attributes (#132875)
We previously assumed that every `DW_AT_LLVM_stmt_sequence` attribute
has a corresponding sequence in the processed line table. However, this
isn't always true. Some sequences can be removed by the linker if they
are empty, as shown
[here](https://github.com/alx32/llvm-project/blob/release/14.x/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp#L565-L566).
When an attribute refers to one of these removed sequences, there is no
actual sequence for it to match. In such cases, we update the attribute
to indicate that it is invalid and does not point to any sequence. This
informs readers that the attribute should be ignored.
The newly modified test would have triggered the assert that is being
removed in this patch.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions