[all-commits] [llvm/llvm-project] c7c7ca: [BOLT] Fix DW_FORM_implicit_const values lost duri...
Rafael Auler via All-commits
all-commits at lists.llvm.org
Wed Jul 8 12:27:45 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c7c7cab93eb2e96d96820668c029f9e1b7e4a00b
https://github.com/llvm/llvm-project/commit/c7c7cab93eb2e96d96820668c029f9e1b7e4a00b
Author: Rafael Auler <rafaelauler at meta.com>
Date: 2026-07-08 (Wed, 08 Jul 2026)
Changed paths:
M bolt/lib/Core/DIEBuilder.cpp
M bolt/test/X86/dwarf5-locexpr-addrx.s
Log Message:
-----------
[BOLT] Fix DW_FORM_implicit_const values lost during DWARF5 rewriting (#192166)
Summary:
Fix two bugs in DIEBuilder that caused DW_FORM_implicit_const values to
be zeroed out when rewriting DWARF5 debug sections
(--update-debug-sections).
1. In constructDIEFast(), DWARFFormValue was constructed with just the
form code, leaving the value at 0. For DW_FORM_implicit_const,
extractValue() is a no-op since the value is expected to be pre-set.
Fix: use AttrSpec.getFormValue() which initializes the value from the
abbreviation table.
2. In assignAbbrev(), AddAttribute(Attr.getAttribute(), Attr.getForm())
used the two-argument overload which discards the implicit_const value.
Fix: use AddAttribute(Attr) to copy the full DIEAbbrevData.
Fixes https://github.com/llvm/llvm-project/issues/192084
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list