[PATCH] D58952: [llvm] Skip over empty line table entries.
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 13:00:03 PST 2019
aprantl added a comment.
@JDevlieghere since this is in general code: Could this affect dsymutil at all?
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp:871
+ // In some cases, e.g. first instruction in a function, the compiler generates
+ // two entries, both with the same address. We want the last one.
LineTable::RowIter RowPos = std::lower_bound(
----------------
Doesn't the DWARF spec require all PC values in the line table to be strictly monotonically increasing? How is it possible to have more than one entry at the same address?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58952/new/
https://reviews.llvm.org/D58952
More information about the llvm-commits
mailing list