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-Tag: llvmorg-6.0.0-rc1~11720 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=641f387cd0ee0458a005b239d494c6d9e0490658;p=platform%2Fupstream%2Fllvm.git Update the assertion to meet with the changes in r309121. (NFC) llvm-svn: 309125 --- diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp index 20fc475..aeddfea 100644 --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/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);