[clang] 6d2b75e - [clang-misexpect] Fixed typo which causes that --pgo-warn-misexpect option is not passed in the compiler invocation
Roman Lebedev via cfe-commits
cfe-commits at lists.llvm.org
Tue May 19 14:18:16 PDT 2020
This seems to be missing a test
On Wed, May 20, 2020 at 12:12 AM Dávid Bolvanský via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
>
> Author: Dávid Bolvanský
> Date: 2020-05-19T23:12:08+02:00
> New Revision: 6d2b75e0887ee87e247756c4d51733616bb2f356
>
> URL: https://github.com/llvm/llvm-project/commit/6d2b75e0887ee87e247756c4d51733616bb2f356
> DIFF: https://github.com/llvm/llvm-project/commit/6d2b75e0887ee87e247756c4d51733616bb2f356.diff
>
> LOG: [clang-misexpect] Fixed typo which causes that --pgo-warn-misexpect option is not passed in the compiler invocation
>
> Added:
>
>
> Modified:
> clang/lib/Frontend/CompilerInvocation.cpp
>
> Removed:
>
>
>
> ################################################################################
> diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
> index 94ba0dd8e598..5496df79dbfb 100644
> --- a/clang/lib/Frontend/CompilerInvocation.cpp
> +++ b/clang/lib/Frontend/CompilerInvocation.cpp
> @@ -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 =
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list