diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-23 08:33:13 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-23 08:33:13 +0000 |
commit | 023d97d70305dfe5a1a24659496ef95dc6bf3d39 (patch) | |
tree | a0b50793f2812f4e8e74141df606cd08484254dc /unittests/IR/DominatorTreeTest.cpp | |
parent | d422e9f114ec11073a63e0fa9ecbfe3aeedf0fbb (diff) |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/IR/DominatorTreeTest.cpp b/unittests/IR/DominatorTreeTest.cpp index a378f2c461..4e5af9395c 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); |