Fix fomit-frame-pointe+pg error

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2018-09-18 20:11:45 +00:00
parent 81fb2fbc3c
commit d361d13e84
1 changed files with 1 additions and 1 deletions

View File

@ -4956,7 +4956,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
} }
if (Arg *A = Args.getLastArg(options::OPT_pg)) 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" D.Diag(diag::err_drv_argument_not_allowed_with) << "-fomit-frame-pointer"
<< A->getAsString(Args); << A->getAsString(Args);