[llvm] [BOLT][DWARF] Cleanup buffer initialization for DWO range writer (PR #97843)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 16:07:44 PDT 2024
================
@@ -652,6 +652,7 @@ void DWARFRewriter::updateDebugInfo() {
auto LegacyRangesSectionWriterByCU =
std::make_unique<DebugRangesSectionWriter>();
LegacyRangesSectionWriterByCU->initSection(CU);
+ LegacyRangesSectionWriterByCU->clearBuffer();
----------------
ayermolo wrote:
Can we not create empty ranges to begin with?
https://github.com/llvm/llvm-project/pull/97843
More information about the llvm-commits
mailing list