projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6c43e8
)
[VPlan] Fix leak by manually cleaning up allocated Phi in test.
author
Florian Hahn
<flo@fhahn.com>
Tue, 24 Jan 2023 17:20:16 +0000
(17:20 +0000)
committer
Florian Hahn
<flo@fhahn.com>
Tue, 24 Jan 2023 17:20:17 +0000
(17:20 +0000)
This should fix a LeakSanitizer failure reported here:
https://lab.llvm.org/buildbot/#/builders/5/builds/30952
llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp
b/llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp
index b41a8a26fd655f962f6c5e5e3a4dabd42d02bc6c..7c252cf2c4fbb7377487697a5f486178cb2b6f55 100644
(file)
--- 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