mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Remove the last memory leak from the VMCore unit tests.
Tested: valgrind --leak-check=full unittests/VMCore/Debug/VMCoreTests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1bd1e6db1d
commit
241611570a
@ -324,10 +324,10 @@ namespace llvm {
|
||||
|
||||
template<typename T>
|
||||
void MemoryTestHelper(int run) {
|
||||
Module *M = makeLLVMModule();
|
||||
OwningPtr<Module> M(makeLLVMModule());
|
||||
T *P = new T();
|
||||
PassManager Passes;
|
||||
Passes.add(new TargetData(M));
|
||||
Passes.add(new TargetData(M.get()));
|
||||
Passes.add(P);
|
||||
Passes.run(*M);
|
||||
T::finishedOK(run);
|
||||
|
Loading…
Reference in New Issue
Block a user