diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 72e18071ed7f0b4871516757883fb5ff2b470a6c..a6e98a063786b004ded0f6d1550ade90767878b8 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -5057,6 +5057,8 @@ bool CompilerInvocation::CreateFromArgsImpl( ProfileName = ProfileNameOrErr.get(); Res.getCodeGenOpts().ProfileInstrumentUsePath = ProfileName; } + + setPGOUseInstrumentor(Res.getCodeGenOpts(), ProfileName, *FS, Diags); } FixupInvocation(Res, Diags, Args, DashX);