forked from OSchip/llvm-project
parent
de94ea140c
commit
5941da33e1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue