diff options
Diffstat (limited to 'llvm/unittests/ProfileData')
-rw-r--r-- | llvm/unittests/ProfileData/InstrProfTest.cpp | 1 | ||||
-rw-r--r-- | llvm/unittests/ProfileData/SampleProfTest.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp index 447f7a2f77a..46e493ebfd7 100644 --- a/llvm/unittests/ProfileData/InstrProfTest.cpp +++ b/llvm/unittests/ProfileData/InstrProfTest.cpp @@ -187,6 +187,7 @@ TEST_F(InstrProfTest, get_profile_summary) { ASSERT_TRUE(isa<InstrProfSummary>(PSFromMD)); InstrProfSummary *IPS = cast<InstrProfSummary>(PSFromMD); VerifySummary(*IPS, false); + delete IPS; } TEST_P(MaybeSparseInstrProfTest, get_icall_data_read_write) { diff --git a/llvm/unittests/ProfileData/SampleProfTest.cpp b/llvm/unittests/ProfileData/SampleProfTest.cpp index 5ab4f56c6f7..9738e9763ca 100644 --- a/llvm/unittests/ProfileData/SampleProfTest.cpp +++ b/llvm/unittests/ProfileData/SampleProfTest.cpp @@ -133,6 +133,7 @@ struct SampleProfTest : ::testing::Test { ASSERT_TRUE(isa<SampleProfileSummary>(PS)); SampleProfileSummary *SPS = cast<SampleProfileSummary>(PS); VerifySummary(*SPS); + delete SPS; } }; |