From 121191cecbf1687a647967e34123f63e85228e99 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 11 Mar 2022 19:55:07 -0800 Subject: [PATCH] [MC] Destroy WasmAllocator in MCContext::reset To not leave lingering getWasmSection instances. --- llvm/lib/MC/MCContext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 94992f7..c808a32 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -141,6 +141,7 @@ void MCContext::reset() { ELFAllocator.DestroyAll(); GOFFAllocator.DestroyAll(); MachOAllocator.DestroyAll(); + WasmAllocator.DestroyAll(); XCOFFAllocator.DestroyAll(); MCInstAllocator.DestroyAll(); -- 2.7.4