aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit023d97d70305dfe5a1a24659496ef95dc6bf3d39 (patch)
treea0b50793f2812f4e8e74141df606cd08484254dc /unittests/IR/DominatorTreeTest.cpp
parentd422e9f114ec11073a63e0fa9ecbfe3aeedf0fbb (diff)
downloadexternal_llvm-023d97d70305dfe5a1a24659496ef95dc6bf3d39.zip
external_llvm-023d97d70305dfe5a1a24659496ef95dc6bf3d39.tar.gz
external_llvm-023d97d70305dfe5a1a24659496ef95dc6bf3d39.tar.bz2
llvm/unittests: Use OwningPtr to fix --vg-leak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR/DominatorTreeTest.cpp')
-rw-r--r--unittests/IR/DominatorTreeTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/IR/DominatorTreeTest.cpp b/unittests/IR/DominatorTreeTest.cpp
index a378f2c..4e5af93 100644
--- a/unittests/IR/DominatorTreeTest.cpp
+++ b/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);