Update to match LLVM r300135.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Apr 2017 23:51:20 +0000 (23:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Apr 2017 23:51:20 +0000 (23:51 +0000)
llvm-svn: 300141

lld/COFF/Driver.cpp

index 9f52ba0..3e7f10b 100644 (file)
@@ -616,7 +616,7 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
     }
   }
 
-  if (Args.filtered_begin(OPT_INPUT) == Args.filtered_end())
+  if (!Args.hasArgNoClaim(OPT_INPUT))
     fatal("no input files");
 
   // Construct search path list.
@@ -917,7 +917,7 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
   // Set default image name if neither /out or /def set it.
   if (Config->OutputFile.empty()) {
     Config->OutputFile =
-        getOutputPath((*Args.filtered_begin(OPT_INPUT))->getValue());
+        getOutputPath((*Args.filtered(OPT_INPUT).begin())->getValue());
   }
 
   // Put the PDB next to the image if no /pdb flag was passed.