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

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 14:15:46 PDT 2020


This breaks check-clang: http://45.33.8.238/linux/18098/step_7.txt

Please take a look, and revert if it takes a while to fix.

On Tue, May 19, 2020 at 5:12 PM 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200519/1555a84d/attachment.html>


More information about the cfe-commits mailing list