Skip to content

Commit ca8b0b4

Browse files
committed
[VPlan] Fix leak by manually cleaning up allocated Phi in test.
This should fix a LeakSanitizer failure reported here: https://lab.llvm.org/buildbot/#/builders/5/builds/30952
1 parent a6c43e8 commit ca8b0b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,7 @@ TEST(VPVerifierTest, VPBlendUseBeforeDefDifferentBB) {
108108
#if GTEST_HAS_STREAM_REDIRECTION
109109
EXPECT_STREQ("", ::testing::internal::GetCapturedStderr().c_str());
110110
#endif
111+
112+
delete Phi;
111113
}
112114
} // namespace

0 commit comments

Comments
 (0)