r342510 - Fix fomit-frame-pointe+pg error
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 18 13:11:46 PDT 2018
Author: dblaikie
Date: Tue Sep 18 13:11:45 2018
New Revision: 342510
URL: http://llvm.org/viewvc/llvm-project?rev=342510&view=rev
Log:
Fix fomit-frame-pointe+pg error
Modified:
cfe/trunk/lib/Driver/ToolChains/Clang.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/Clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Clang.cpp?rev=342510&r1=342509&r2=342510&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Clang.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Clang.cpp Tue Sep 18 13:11:45 2018
@@ -4956,7 +4956,7 @@ void Clang::ConstructJob(Compilation &C,
}
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);
More information about the cfe-commits
mailing list