[llvm] [NFC] Fix memory leak in ConstantsTest (PR #170789)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 17:28:56 PST 2025
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/170789
Leak introduced with #164381.
>From fb7a0a713d7d7f07fa6b5e7b72a1f2975ce7b6c7 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Thu, 4 Dec 2025 17:28:38 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
llvm/unittests/IR/ConstantsTest.cpp | 1 +
1 file changed, 1 insertion(+)
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