Fix fomit-frame-pointe+pg error

llvm-svn: 342510
This commit is contained in:
David Blaikie 2018-09-18 20:11:45 +00:00
parent de94ea140c
commit 5941da33e1
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 (shouldUseFramePointer(Args, Triple))
if (!shouldUseFramePointer(Args, Triple))
D.Diag(diag::err_drv_argument_not_allowed_with) << "-fomit-frame-pointer"
<< A->getAsString(Args);