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 | 508baf79005e4eb3dea46e856155e921e388d286 (patch) | |
| tree | 8b98063e33bdc4dfb3e3c7b4b2b7bd47596ed64d /llvm/unittests/IR/ConstantsTest.cpp | |
| parent | 6d951b7cff76fb4adf2d64df0901c45a4ff1fef9 (diff) | |
| download | llvm-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/ConstantsTest.cpp')
| -rw-r--r-- | llvm/unittests/IR/ConstantsTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp index 5c739cd..fee38b8 100644 --- a/llvm/unittests/IR/ConstantsTest.cpp +++ b/llvm/unittests/IR/ConstantsTest.cpp @@ -162,7 +162,7 @@ TEST(ConstantsTest, PointerCast) { } TEST(ConstantsTest, AsInstructionsTest) { - Module *M = new Module("MyModule", getGlobalContext()); + OwningPtr<Module> M(new Module("MyModule", getGlobalContext())); Type *Int64Ty = Type::getInt64Ty(getGlobalContext()); Type *Int32Ty = Type::getInt32Ty(getGlobalContext()); |
