aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/ConstantsTest.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/ConstantsTest.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/ConstantsTest.cpp')
-rw-r--r--llvm/unittests/IR/ConstantsTest.cpp2
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());