diff --git a/llvm/lib/CodeGen/MIRSampleProfile.cpp b/llvm/lib/CodeGen/MIRSampleProfile.cpp index a821ad4ccea4c2..2eb29a7860eb71 100644 --- a/llvm/lib/CodeGen/MIRSampleProfile.cpp +++ b/llvm/lib/CodeGen/MIRSampleProfile.cpp @@ -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; }