forked from OSchip/llvm-project
Update the assertion to meet with the changes in r309121. (NFC)
llvm-svn: 309125
This commit is contained in:
parent
01ab86e62b
commit
641f387cd0
|
@ -575,7 +575,7 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
|
|||
// Add all the requested passes for PGO, if requested.
|
||||
if (PGOOpt) {
|
||||
assert(PGOOpt->RunProfileGen || !PGOOpt->SampleProfileFile.empty() ||
|
||||
!PGOOpt->ProfileUseFile.empty());
|
||||
!PGOOpt->ProfileUseFile.empty() || PGOOpt->SamplePGOSupport);
|
||||
if (PGOOpt->SampleProfileFile.empty())
|
||||
addPGOInstrPasses(MPM, DebugLogging, Level, PGOOpt->RunProfileGen,
|
||||
PGOOpt->ProfileGenFile, PGOOpt->ProfileUseFile);
|
||||
|
|
Loading…
Reference in New Issue