From e82a5fae0309eee5a253e84b77f84525bdcbf111 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 23 Jan 2013 08:31:28 +0000 Subject: 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 --- unittests/IR/IRBuilderTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'unittests/IR') 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) { -- cgit v1.1