[PATCH] D107554: [DWARF][Verifier] Do not add child DieRangeInfo with empty address range to the parent.
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 17 14:21:11 PDT 2021
dblaikie added inline comments.
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp:389
- DWARFAddressRangesVector Ranges = RangesOrError.get();
+ const DWARFAddressRangesVector &Ranges = RangesOrError.get();
// Build RI for this DIE and check that ranges within this DIE do not
----------------
Probably commit this as a separate NFC change.
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp:453
ParentRI.Die.getTag() == DW_TAG_subprogram);
if (ShouldBeContained && !ParentRI.contains(RI)) {
++NumErrors;
----------------
Could `contains` have the same handling? (maybe both ParentRI/this and RI/RHS could be checked, then they wouldn't need to be checked at this caller)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107554/new/
https://reviews.llvm.org/D107554
More information about the llvm-commits
mailing list