From a13714ea5f8e95c5969271b74d490f0dd829cc71 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 12 Apr 2017 23:51:20 +0000 Subject: [PATCH] Update to match LLVM r300135. llvm-svn: 300141 --- lld/COFF/Driver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 9f52ba0..3e7f10b 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -616,7 +616,7 @@ void LinkerDriver::link(ArrayRef 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 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. -- 2.7.4