Update the assertion to meet with the changes in r309121. (NFC)

llvm-svn: 309125
This commit is contained in:
Dehao Chen 2017-07-26 15:47:00 +00:00
parent 01ab86e62b
commit 641f387cd0
1 changed files with 1 additions and 1 deletions

View File

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