[PATCH] D126835: Round up zero-sized symbols to 1 byte in `.debug_aranges` (without breaking other logic).

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 13 14:32:40 PDT 2022


dblaikie added a subscriber: hansw.
dblaikie added a comment.

In D126835#3577753 <https://reviews.llvm.org/D126835#3577753>, @hans wrote:

> When trying this on Chromium (in the context of https://crbug.com/1335630) we hit a densemap assert in llvm::DwarfDebug::emitDebugARanges()
> See the attached reproducer.
>
> F23428761: string_piece_unittest-c72fb0.sh <https://reviews.llvm.org/F23428761>
>
> F23428765: string_piece_unittest-c72fb0.cpp <https://reviews.llvm.org/F23428765>

Thanks for the reproducer, @hansw - sounds worth addressing before this moves forward.

(I'm still sort of feeling like we should fix the underlying entities to be non-zero length always (even if they're zero length at the language level - they can still be non-zero length as an implementation detail providing unique addresses))


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126835/new/

https://reviews.llvm.org/D126835



More information about the llvm-commits mailing list