From: NAKAMURA Takumi Date: Wed, 23 Jan 2013 08:31:28 +0000 (+0000) Subject: IRTests/IRBuilderTest.cpp: GetIntTy: Delete DL at yourself since it is not linked. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e82a5fae0309eee5a253e84b77f84525bdcbf111;p=oota-llvm.git 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 --- diff --git a/unittests/IR/IRBuilderTest.cpp b/unittests/IR/IRBuilderTest.cpp index 8c3471c3de4..fecc4a4fe6b 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) {