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 {