summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitd86cd7855b7f6dae1dfb4e2779af888a937f7b76 (patch)
tree6ba297e49c375deec04e0dbea8e27a3ad72384f5 /llvm/unittests/IR
parent7493658645950cd93e589a79e1f4bb66494418d0 (diff)
downloadbcm5719-llvm-d86cd7855b7f6dae1dfb4e2779af888a937f7b76.tar.gz
bcm5719-llvm-d86cd7855b7f6dae1dfb4e2779af888a937f7b76.zip
IRTests/IRBuilderTest.cpp: GetIntTy: Delete DL at yourself since it is not linked.
llvm-svn: 173238
Diffstat (limited to 'llvm/unittests/IR')
-rw-r--r--llvm/unittests/IR/IRBuilderTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/IR/IRBuilderTest.cpp b/llvm/unittests/IR/IRBuilderTest.cpp
index 8c3471c3de4..fecc4a4fe6b 100644
--- a/llvm/unittests/IR/IRBuilderTest.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud