[clang-misexpect] Fixed typo which causes that --pgo-warn-misexpect option is not passed in the compiler invocation

This commit is contained in:
Dávid Bolvanský 2020-05-19 23:12:08 +02:00
parent 5d2c3a0b8c
commit 6d2b75e088
1 changed files with 1 additions and 1 deletions

View File

@ -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 =