mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 16:18:37 +00:00
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
This commit is contained in:
parent
f25b003523
commit
e82a5fae03
@ -115,6 +115,7 @@ TEST_F(IRBuilderTest, GetIntTy) {
|
|||||||
IntegerType *IntPtrTy = Builder.getIntPtrTy(DL);
|
IntegerType *IntPtrTy = Builder.getIntPtrTy(DL);
|
||||||
unsigned IntPtrBitSize = DL->getPointerSizeInBits(0);
|
unsigned IntPtrBitSize = DL->getPointerSizeInBits(0);
|
||||||
EXPECT_EQ(IntPtrTy, IntegerType::get(getGlobalContext(), IntPtrBitSize));
|
EXPECT_EQ(IntPtrTy, IntegerType::get(getGlobalContext(), IntPtrBitSize));
|
||||||
|
delete DL;
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(IRBuilderTest, FastMathFlags) {
|
TEST_F(IRBuilderTest, FastMathFlags) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user