diff --git a/llvm/lib/CodeGen/MIRSampleProfile.cpp b/llvm/lib/CodeGen/MIRSampleProfile.cpp --- a/llvm/lib/CodeGen/MIRSampleProfile.cpp +++ b/llvm/lib/CodeGen/MIRSampleProfile.cpp @@ -274,7 +274,6 @@ Reader = std::move(ReaderOrErr.get()); Reader->setModule(&M); ProfileIsValid = (Reader->read() == sampleprof_error::success); - Reader->getSummary(); return true; }