mirror of https://github.com/microsoft/clang.git
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:
parent
81fb2fbc3c
commit
d361d13e84
|
@ -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