[llvm] fix llvm-gsymutil verification (PR #141751)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 13:16:03 PDT 2025
https://github.com/peremyach updated https://github.com/llvm/llvm-project/pull/141751
>From ee2c633ab8eac0b0f97ffe9e257b16cc2f1cd58c Mon Sep 17 00:00:00 2001
From: Arslan Khabutdinov <akhabutdinov at fb.com>
Date: Wed, 28 May 2025 05:28:42 -0700
Subject: [PATCH] fix llvm-gsymutil verification
---
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
index a397cad0051db..43e82aee0784a 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
@@ -660,6 +660,11 @@ void DWARFUnit::clearDIEs(bool KeepCUDie, bool KeepDWODies) {
if (!KeepDWODies && DWO) {
DWO->clearDIEs(KeepCUDie, KeepDWODies);
}
+ if (!IsDWO) {
+ RangeSectionBase = 0;
+ LocSectionBase = 0;
+ AddrOffsetSectionBase = std::nullopt;
+ }
// Do not use resize() + shrink_to_fit() to free memory occupied by dies.
// shrink_to_fit() is a *non-binding* request to reduce capacity() to
// size(). It depends on the implementation whether the request is
More information about the llvm-commits
mailing list