From: Dehao Chen Date: Wed, 26 Jul 2017 15:47:00 +0000 (+0000) Subject: Update the assertion to meet with the changes in r309121. (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03705980466ba05f0d43d0465200ee5e5ffdf689;p=llvm Update the assertion to meet with the changes in r309121. (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309125 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Passes/PassBuilder.cpp b/lib/Passes/PassBuilder.cpp index 20fc475305a..aeddfeaca75 100644 --- a/lib/Passes/PassBuilder.cpp +++ b/lib/Passes/PassBuilder.cpp @@ -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);