forked from OSchip/llvm-project
Fix a memory link problem in SampleProfTest.cpp.
This commit is contained in:
parent
580a9f2c30
commit
d931b09a16
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue