Skip to content

Commit d931b09

Browse files
committed
Fix a memory link problem in SampleProfTest.cpp.
1 parent 580a9f2 commit d931b09

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/unittests/ProfileData/SampleProfTest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ struct SampleProfTest : ::testing::Test {
121121
delete PS;
122122

123123
// Test that summary can be attached to and read back from module.
124-
PS = ProfileSummary::getFromMD(MD);
125-
126124
M.eraseNamedMetadata(M.getOrInsertModuleFlagsMetadata());
127125
M.setProfileSummary(MD, ProfileSummary::PSK_Sample);
128126
MD = M.getProfileSummary(/* IsCS */ false);

0 commit comments

Comments
 (0)