r261782 - Fix build by using hasFlag instead of hasArg.

Peter Collingbourne via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 24 14:03:07 PST 2016


Author: pcc
Date: Wed Feb 24 16:03:06 2016
New Revision: 261782

URL: http://llvm.org/viewvc/llvm-project?rev=261782&view=rev
Log:
Fix build by using hasFlag instead of hasArg.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=261782&r1=261781&r2=261782&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Feb 24 16:03:06 2016
@@ -4270,8 +4270,8 @@ void Clang::ConstructJob(Compilation &C,
     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"




More information about the cfe-commits mailing list