1
0
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:
Jeffrey Yasskin 2010-03-13 02:15:08 +00:00
parent 14eafddc99
commit 940d9caf7d

View File

@ -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);