diff options
| -rw-r--r-- | lld/COFF/Driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 9f52ba04749..3e7f10bf8d1 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -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. |

