Skip to content

Commit 80b9f07

Browse files
authored
[VPlan] Suppress leak in test (#114624)
Probably needs a better fix. #114623
1 parent 89560cd commit 80b9f07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/unittests/Transforms/Vectorize/VPlanTest.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,9 @@ TEST(VPBasicBlockTest, print) {
732732

733733
LLVMContext C;
734734
auto *ScalarHeader = BasicBlock::Create(C, "");
735-
VPIRBasicBlock *ScalarHeaderVPBB = new VPIRBasicBlock(ScalarHeader);
736-
VPlan Plan(VPBB0, TC, VPBB1, ScalarHeaderVPBB);
735+
// FIXME: This looks wrong.
736+
auto ScalarHeaderVPBB = std::make_unique<VPIRBasicBlock>(ScalarHeader);
737+
VPlan Plan(VPBB0, TC, VPBB1, ScalarHeaderVPBB.get());
737738
std::string FullDump;
738739
raw_string_ostream OS(FullDump);
739740
Plan.printDOT(OS);

0 commit comments

Comments
 (0)