]> granicus.if.org Git - clang/commitdiff
Driver: Add missing claim() for -mllvm options.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 17 Apr 2010 06:10:00 +0000 (06:10 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 17 Apr 2010 06:10:00 +0000 (06:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101618 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 4ac340d5412bd9972306cf5c405b87c711ef2952..899eb4841ab5abe85a776323776e8e7ff9e2804d 100644 (file)
@@ -1330,6 +1330,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
   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")