[llvm-branch-commits] [cfe-branch] r102207 - /cfe/branches/Apple/williamson/lib/Driver/Tools.cpp

Daniel Dunbar daniel at zuster.org
Fri Apr 23 12:43:07 PDT 2010


Author: ddunbar
Date: Fri Apr 23 14:43:07 2010
New Revision: 102207

URL: http://llvm.org/viewvc/llvm-project?rev=102207&view=rev
Log:
Driver: Add missing claim() for -mllvm options.

Modified:
    cfe/branches/Apple/williamson/lib/Driver/Tools.cpp

Modified: cfe/branches/Apple/williamson/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/williamson/lib/Driver/Tools.cpp?rev=102207&r1=102206&r2=102207&view=diff
==============================================================================
--- cfe/branches/Apple/williamson/lib/Driver/Tools.cpp (original)
+++ cfe/branches/Apple/williamson/lib/Driver/Tools.cpp Fri Apr 23 14:43:07 2010
@@ -1329,6 +1329,8 @@
   Args.AddAllArgValues(CmdArgs, options::OPT_Xclang);
   for (arg_iterator it = Args.filtered_begin(options::OPT_mllvm),
          ie = Args.filtered_end(); it != ie; ++it) {
+    it->claim();
+
     // We translate this by hand to the -cc1 argument, since nightly test uses
     // it and developers have been trained to spell it with -mllvm.
     if (llvm::StringRef(it->getValue(Args, 0)) == "-disable-llvm-optzns")





More information about the llvm-branch-commits mailing list