Skip to content

Commit c572c17

Browse files
vitalybukasmallp-o-p
authored and
smallp-o-p
committed
[VPlan] Suppress leak in test (llvm#114624)
Probably needs a better fix. llvm#114623
1 parent 70fe4ad commit c572c17

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)