[llvm] 7f01d72 - [NFC] Fix memory leak in ConstantsTest (#170789)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 17:59:40 PST 2025
Author: Vitaly Buka
Date: 2025-12-05T01:59:36Z
New Revision: 7f01d721083660116bc288d99a5dc7e86bb219c1
URL: https://github.com/llvm/llvm-project/commit/7f01d721083660116bc288d99a5dc7e86bb219c1
DIFF: https://github.com/llvm/llvm-project/commit/7f01d721083660116bc288d99a5dc7e86bb219c1.diff
LOG: [NFC] Fix memory leak in ConstantsTest (#170789)
Leak introduced with #164381.
Added:
Modified:
llvm/unittests/IR/ConstantsTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp
index 86fd6a398cc97..5b845865f9437 100644
--- a/llvm/unittests/IR/ConstantsTest.cpp
+++ b/llvm/unittests/IR/ConstantsTest.cpp
@@ -862,6 +862,7 @@ TEST(ConstantsTest, Float128Test) {
uint64_t r[1] = {0x0000000000003c00}; //+1
LLVMValueRef val7 = LLVMConstFPFromBits(TyHalf, r);
EXPECT_TRUE(val7 != nullptr);
+ LLVMDisposeBuilder(Builder);
LLVMContextDispose(C);
}
More information about the llvm-commits
mailing list