Files
llvm/lldb/scripts/llvm.delete-target-machine.diff
Sean Callanan d8186490c1 Integrated a patch for the MCJIT that inhibits
a memory leak.

llvm-svn: 148507
2012-01-19 23:01:46 +00:00

13 lines
355 B
Diff

Index: lib/ExecutionEngine/MCJIT/MCJIT.cpp
===================================================================
--- lib/ExecutionEngine/MCJIT/MCJIT.cpp (revision 146622)
+++ lib/ExecutionEngine/MCJIT/MCJIT.cpp (working copy)
@@ -85,6 +85,7 @@
MCJIT::~MCJIT() {
delete MemMgr;
+ delete TM;
}
void *MCJIT::getPointerToBasicBlock(BasicBlock *BB) {