[llvm] y (PR #81828)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 23:00:43 PST 2024
https://github.com/ayermolo created https://github.com/llvm/llvm-project/pull/81828
This is followup to https://github.com/llvm/llvm-project/pull/8120. Missed a
destuctor.
>From 6c884ef47e88e5ff18353819e806fe1b84e3c5b5 Mon Sep 17 00:00:00 2001
From: Alexander Yermolovich <ayermolo at meta.com>
Date: Wed, 14 Feb 2024 22:56:03 -0800
Subject: [PATCH] [LLVM][DWARF] Fix memory leak
This is followup to https://github.com/llvm/llvm-project/pull/8120. Missed a
destuctor.
---
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
index 230d7add6d37cf..22d995a9cc3c56 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
@@ -251,7 +251,10 @@ class Dwarf5AccelTableWriter : public AccelTableWriter {
const DWARF5AccelTableData &)>
getIndexForEntry,
bool IsSplitDwarf);
-
+ ~Dwarf5AccelTableWriter() {
+ for (DebugNamesAbbrev *Abbrev : AbbreviationsVector)
+ Abbrev->~DebugNamesAbbrev();
+ }
void emit();
};
} // namespace
More information about the llvm-commits
mailing list