mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Remove the last memory leak from the VMCore unit tests.
Tested: valgrind --leak-check=full unittests/VMCore/Debug/VMCoreTests llvm-svn: 98414
This commit is contained in:
parent
14eafddc99
commit
940d9caf7d
@ -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