From: David Blaikie Date: Tue, 18 Sep 2018 20:11:45 +0000 (+0000) Subject: Fix fomit-frame-pointe+pg error X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d361d13e84d7fdca84528649cabdb23e2e48d091;p=clang Fix fomit-frame-pointe+pg error git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains/Clang.cpp b/lib/Driver/ToolChains/Clang.cpp index 73fe99442c..ef9fb8cffe 100644 --- a/lib/Driver/ToolChains/Clang.cpp +++ b/lib/Driver/ToolChains/Clang.cpp @@ -4956,7 +4956,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, } if (Arg *A = Args.getLastArg(options::OPT_pg)) - if (shouldUseFramePointer(Args, Triple)) + if (!shouldUseFramePointer(Args, Triple)) D.Diag(diag::err_drv_argument_not_allowed_with) << "-fomit-frame-pointer" << A->getAsString(Args);