From 6d2b75e0887ee87e247756c4d51733616bb2f356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Bolvansk=C3=BD?= Date: Tue, 19 May 2020 23:12:08 +0200 Subject: [PATCH] [clang-misexpect] Fixed typo which causes that --pgo-warn-misexpect option is not passed in the compiler invocation --- clang/lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =