[PATCH] D52582: [WebAssembly] Fix memory leak on WasmEHFuncInfo
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 28 13:55:52 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343362: [WebAssembly] Fix memory leak on WasmEHFuncInfo (authored by aheejin, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D52582
Files:
llvm/trunk/lib/CodeGen/MachineFunction.cpp
Index: llvm/trunk/lib/CodeGen/MachineFunction.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp
@@ -246,6 +246,11 @@
WinEHInfo->~WinEHFuncInfo();
Allocator.Deallocate(WinEHInfo);
}
+
+ if (WasmEHInfo) {
+ WasmEHInfo->~WasmEHFuncInfo();
+ Allocator.Deallocate(WasmEHInfo);
+ }
}
const DataLayout &MachineFunction::getDataLayout() const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52582.167542.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180928/2179713b/attachment.bin>
More information about the llvm-commits
mailing list