forked from OSchip/llvm-project
[clang-misexpect] Fixed typo which causes that --pgo-warn-misexpect option is not passed in the compiler invocation
This commit is contained in:
parent
5d2c3a0b8c
commit
6d2b75e088
|
@ -3680,7 +3680,7 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res,
|
|||
}
|
||||
}
|
||||
|
||||
if (Diags.isIgnored(diag::warn_profile_data_misexpect, SourceLocation()))
|
||||
if (!Diags.isIgnored(diag::warn_profile_data_misexpect, SourceLocation()))
|
||||
Res.FrontendOpts.LLVMArgs.push_back("-pgo-warn-misexpect");
|
||||
|
||||
LangOpts.FunctionAlignment =
|
||||
|
|
Loading…
Reference in New Issue