aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/DominatorTreeTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-23 08:33:13 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-23 08:33:13 +0000
commit508baf79005e4eb3dea46e856155e921e388d286 (patch)
tree8b98063e33bdc4dfb3e3c7b4b2b7bd47596ed64d /llvm/unittests/IR/DominatorTreeTest.cpp
parent6d951b7cff76fb4adf2d64df0901c45a4ff1fef9 (diff)
downloadllvm-508baf79005e4eb3dea46e856155e921e388d286.zip
llvm-508baf79005e4eb3dea46e856155e921e388d286.tar.gz
llvm-508baf79005e4eb3dea46e856155e921e388d286.tar.bz2
llvm/unittests: Use OwningPtr to fix --vg-leak.
llvm-svn: 173240
Diffstat (limited to 'llvm/unittests/IR/DominatorTreeTest.cpp')
-rw-r--r--llvm/unittests/IR/DominatorTreeTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/DominatorTreeTest.cpp b/llvm/unittests/IR/DominatorTreeTest.cpp
index a378f2c..4e5af939 100644
--- a/llvm/unittests/IR/DominatorTreeTest.cpp
+++ b/llvm/unittests/IR/DominatorTreeTest.cpp
@@ -191,7 +191,7 @@ namespace llvm {
TEST(DominatorTree, Unreachable) {
DPass *P = new DPass();
- Module *M = makeLLVMModule(P);
+ OwningPtr<Module> M(makeLLVMModule(P));
PassManager Passes;
Passes.add(P);
Passes.run(*M);