From: Peter Collingbourne Date: Wed, 24 Feb 2016 22:03:06 +0000 (+0000) Subject: Fix build by using hasFlag instead of hasArg. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32bdbb35f2711fd7dc17589617e5c1fb78d06b67;p=clang Fix build by using hasFlag instead of hasArg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261782 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 0206281ae2..0cb49afb72 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -4270,8 +4270,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-ffunction-sections"); } - if (Args.hasArg(options::OPT_fwhole_program_vtables, - options::OPT_fno_whole_program_vtables, false)) { + if (Args.hasFlag(options::OPT_fwhole_program_vtables, + options::OPT_fno_whole_program_vtables, false)) { if (!D.isUsingLTO()) D.Diag(diag::err_drv_argument_only_allowed_with) << "-fwhole-program-vtables"