Skip to content

Commit

Permalink
remove useless call in MIRSampleProfile.cpp
Browse files Browse the repository at this point in the history
This call getSummary returns a value but nobody take
it.

Reviewed By: skan

Differential Revision: https://reviews.llvm.org/D148305
  • Loading branch information
XinWang10 committed Apr 17, 2023
1 parent 455c9ef commit 9fa721c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llvm/lib/CodeGen/MIRSampleProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ bool MIRProfileLoader::doInitialization(Module &M) {
Reader = std::move(ReaderOrErr.get());
Reader->setModule(&M);
ProfileIsValid = (Reader->read() == sampleprof_error::success);
Reader->getSummary();

return true;
}
Expand Down

0 comments on commit 9fa721c

Please sign in to comment.