[llvm] [BOLT] Fix memory leak in BinarySection (PR #82520)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 11:03:16 PST 2024


================
@@ -190,18 +190,7 @@ void BinarySection::flushPendingRelocations(raw_pwrite_stream &OS,
   clearList(PendingRelocations);
 }
 
-BinarySection::~BinarySection() {
-  if (isReordered()) {
----------------
aaupov wrote:

Why are we dropping this condition?

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


More information about the llvm-commits mailing list