[PATCH] D151348: [DWARFLinker] Set size of location expression of DW_FORM_block1 properly.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 09:59:18 PDT 2023


avl created this revision.
avl added reviewers: JDevlieghere, aprantl.
Herald added a subscriber: hiraditya.
Herald added a project: All.
avl requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch fixes the problem introduced by D147066 <https://reviews.llvm.org/D147066>. As D147066 <https://reviews.llvm.org/D147066> may change
the contents of location expression, it started to calculate final attribute
size. This patch uses more correct way to calculate size: DIEValue::sizeOf().


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151348

Files:
  llvm/lib/DWARFLinker/DWARFLinker.cpp
  llvm/test/tools/dsymutil/X86/location-expression.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151348.525234.patch
Type: text/x-patch
Size: 15759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230524/1a612d19/attachment.bin>


More information about the llvm-commits mailing list