aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
diff options
context:
space:
mode:
authorAlexander Yermolovich <43973793+ayermolo@users.noreply.github.com>2024-02-15 09:45:32 -0800
committerGitHub <noreply@github.com>2024-02-15 09:45:32 -0800
commitf905877f2039e97479425e4d78cbfde72f360b4d (patch)
treeb5b0c6e9d37da13558e668ddbe95a4b954a455c6 /llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
parent2eaeae7e9a298b8a4c9a313f914c42f1e0b82c39 (diff)
downloadllvm-f905877f2039e97479425e4d78cbfde72f360b4d.zip
llvm-f905877f2039e97479425e4d78cbfde72f360b4d.tar.gz
llvm-f905877f2039e97479425e4d78cbfde72f360b4d.tar.bz2
[LLVM][DWARF] Fix for memory leak (#81828)
This is followup to https://github.com/llvm/llvm-project/pull/8120. Missed a destuctor.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
index 230d7ad..22d995a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
@@ -251,7 +251,10 @@ public:
const DWARF5AccelTableData &)>
getIndexForEntry,
bool IsSplitDwarf);
-
+ ~Dwarf5AccelTableWriter() {
+ for (DebugNamesAbbrev *Abbrev : AbbreviationsVector)
+ Abbrev->~DebugNamesAbbrev();
+ }
void emit();
};
} // namespace