[llvm] d931b09 - Fix a memory link problem in SampleProfTest.cpp.
Wei Mi via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 10:32:44 PDT 2020
Author: Wei Mi
Date: 2020-04-27T10:32:30-07:00
New Revision: d931b09a16c427acea733514a979f870196b3d99
URL: https://github.com/llvm/llvm-project/commit/d931b09a16c427acea733514a979f870196b3d99
DIFF: https://github.com/llvm/llvm-project/commit/d931b09a16c427acea733514a979f870196b3d99.diff
LOG: Fix a memory link problem in SampleProfTest.cpp.
Added:
Modified:
llvm/unittests/ProfileData/SampleProfTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/ProfileData/SampleProfTest.cpp b/llvm/unittests/ProfileData/SampleProfTest.cpp
index 5421882e811e..62273740c91a 100644
--- a/llvm/unittests/ProfileData/SampleProfTest.cpp
+++ b/llvm/unittests/ProfileData/SampleProfTest.cpp
@@ -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);
More information about the llvm-commits
mailing list