[llvm] [VPlan] Suppress leak in test (PR #114624)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 16:25:05 PDT 2024
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/114624
Probably needs a better fix. #114623
>From f04b5594e1d37506209fbc3791a53710d4f45cdf Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Fri, 1 Nov 2024 16:24:49 -0700
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.4
---
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp b/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
index 0f1b52bd453e0f..4a8615cc086b08 100644
--- a/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
+++ b/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
@@ -732,8 +732,9 @@ TEST(VPBasicBlockTest, print) {
LLVMContext C;
auto *ScalarHeader = BasicBlock::Create(C, "");
- VPIRBasicBlock *ScalarHeaderVPBB = new VPIRBasicBlock(ScalarHeader);
- VPlan Plan(VPBB0, TC, VPBB1, ScalarHeaderVPBB);
+ // FIXME: This looks wrong.
+ auto ScalarHeaderVPBB = std::make_unique<VPIRBasicBlock>(ScalarHeader);
+ VPlan Plan(VPBB0, TC, VPBB1, ScalarHeaderVPBB.get());
std::string FullDump;
raw_string_ostream OS(FullDump);
Plan.printDOT(OS);
More information about the llvm-commits
mailing list