Skip to content

Commit 7f01d72

Browse files
authored
[NFC] Fix memory leak in ConstantsTest (#170789)
Leak introduced with #164381.
1 parent 9342d03 commit 7f01d72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/unittests/IR/ConstantsTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ TEST(ConstantsTest, Float128Test) {
862862
uint64_t r[1] = {0x0000000000003c00}; //+1
863863
LLVMValueRef val7 = LLVMConstFPFromBits(TyHalf, r);
864864
EXPECT_TRUE(val7 != nullptr);
865+
LLVMDisposeBuilder(Builder);
865866
LLVMContextDispose(C);
866867
}
867868

0 commit comments

Comments
 (0)