From: Florian Hahn Date: Tue, 24 Jan 2023 17:20:16 +0000 (+0000) Subject: [VPlan] Fix leak by manually cleaning up allocated Phi in test. X-Git-Tag: upstream/17.0.6~19793 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca8b0b4af42499669573fdfe6e3bb87feb2f6b69;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp b/llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp index b41a8a2..7c252cf 100644 --- a/llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp +++ b/llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp @@ -108,5 +108,7 @@ TEST(VPVerifierTest, VPBlendUseBeforeDefDifferentBB) { #if GTEST_HAS_STREAM_REDIRECTION EXPECT_STREQ("", ::testing::internal::GetCapturedStderr().c_str()); #endif + + delete Phi; } } // namespace