1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix a memory link problem in SampleProfTest.cpp.

This commit is contained in:
Wei Mi 2020-04-27 10:31:25 -07:00
parent 4cd45015fc
commit dc71127fed

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);