aboutsummaryrefslogtreecommitdiffstats
path: root/unittests/IR
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-23 08:31:28 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-23 08:31:28 +0000
commite82a5fae0309eee5a253e84b77f84525bdcbf111 (patch)
tree7a602ed0b094eb603a80cc51dd9448c019f6a08a /unittests/IR
parentf25b003523c3c75e2db4b478e040f1c6925667a5 (diff)
downloadexternal_llvm-e82a5fae0309eee5a253e84b77f84525bdcbf111.zip
external_llvm-e82a5fae0309eee5a253e84b77f84525bdcbf111.tar.gz
external_llvm-e82a5fae0309eee5a253e84b77f84525bdcbf111.tar.bz2
IRTests/IRBuilderTest.cpp: GetIntTy: Delete DL at yourself since it is not linked.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR')
-rw-r--r--unittests/IR/IRBuilderTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/IR/IRBuilderTest.cpp b/unittests/IR/IRBuilderTest.cpp
index 8c3471c..fecc4a4 100644
--- a/unittests/IR/IRBuilderTest.cpp
+++ b/unittests/IR/IRBuilderTest.cpp
@@ -115,6 +115,7 @@ TEST_F(IRBuilderTest, GetIntTy) {
IntegerType *IntPtrTy = Builder.getIntPtrTy(DL);
unsigned IntPtrBitSize = DL->getPointerSizeInBits(0);
EXPECT_EQ(IntPtrTy, IntegerType::get(getGlobalContext(), IntPtrBitSize));
+ delete DL;
}
TEST_F(IRBuilderTest, FastMathFlags) {