From ceef145ffa3e34e3e454d14386170b3f66dd04eb Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 24 Feb 2016 22:03:06 +0000 Subject: Fix build by using hasFlag instead of hasArg. llvm-svn: 261782 --- clang/lib/Driver/Tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Driver/Tools.cpp') diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 0206281ae29..0cb49afb72e 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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" -- cgit v1.2.3