Index: lib/Transforms/IPO/PassManagerBuilder.cpp =================================================================== --- lib/Transforms/IPO/PassManagerBuilder.cpp +++ lib/Transforms/IPO/PassManagerBuilder.cpp @@ -170,8 +170,8 @@ MergeFunctions = false; PrepareForLTO = false; EnablePGOInstrGen = RunPGOInstrGen; - PGOInstrGen = PGOOutputFile; - PGOInstrUse = RunPGOInstrUse; + PGOInstrGen = RunPGOInstrGen.getValue(); + PGOInstrUse = RunPGOInstrUse.getValue(); PrepareForThinLTO = EnablePrepareForThinLTO; PerformThinLTO = false; DivergentTarget = false; Index: lib/Transforms/Instrumentation/PGOInstrumentation.cpp =================================================================== --- lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -319,7 +319,7 @@ PGOInstrumentationUseLegacyPass(std::string Filename = "") : ModulePass(ID), ProfileFileName(std::move(Filename)) { if (!PGOTestProfileFile.empty()) - ProfileFileName = PGOTestProfileFile; + ProfileFileName = PGOTestProfileFile.getValue(); initializePGOInstrumentationUseLegacyPassPass( *PassRegistry::getPassRegistry()); } @@ -1375,7 +1375,7 @@ PGOInstrumentationUse::PGOInstrumentationUse(std::string Filename) : ProfileFileName(std::move(Filename)) { if (!PGOTestProfileFile.empty()) - ProfileFileName = PGOTestProfileFile; + ProfileFileName = PGOTestProfileFile.getValue(); } PreservedAnalyses PGOInstrumentationUse::run(Module &M,