[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 17:45:43 PDT 2024


================
@@ -652,6 +652,7 @@ void DWARFRewriter::updateDebugInfo() {
         auto LegacyRangesSectionWriterByCU =
             std::make_unique<DebugRangesSectionWriter>();
         LegacyRangesSectionWriterByCU->initSection(CU);
+        LegacyRangesSectionWriterByCU->clearBuffer();
----------------
ayermolo wrote:

Sure give it a shot, or remove init code entirely and for main one write out empty list explicilty?

https://github.com/llvm/llvm-project/pull/97843


More information about the llvm-commits mailing list