From 01ba8545fb6bae2a370606b4f40f0d17eb0a8c6c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 2 Jun 2011 17:30:53 +0000 Subject: Add -fno-gnu89-inline. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132468 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Driver/Tools.cpp') diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index fbc5109207..6af9ba8ccb 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1712,7 +1712,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_fno_gnu_keywords)) A->render(Args, CmdArgs); - if (Arg *A = Args.getLastArg(options::OPT_fgnu89_inline)) + if (Args.hasFlag(options::OPT_fgnu89_inline, + options::OPT_fno_gnu89_inline, + false)) CmdArgs.push_back("-fgnu89-inline"); // -fnext-runtime defaults to on Darwin and when rewriting Objective-C, and is -- cgit v1.2.3-18-g5258