Fix a memory link problem in SampleProfTest.cpp.

This commit is contained in:
Wei Mi 2020-04-27 10:31:25 -07:00
parent 580a9f2c30
commit d931b09a16
1 changed files with 0 additions and 2 deletions

View File

@ -121,8 +121,6 @@ struct SampleProfTest : ::testing::Test {
delete PS;
// Test that summary can be attached to and read back from module.
PS = ProfileSummary::getFromMD(MD);
M.eraseNamedMetadata(M.getOrInsertModuleFlagsMetadata());
M.setProfileSummary(MD, ProfileSummary::PSK_Sample);
MD = M.getProfileSummary(/* IsCS */ false);