diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-12 23:51:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-12 23:51:20 +0000 |
commit | a13714ea5f8e95c5969271b74d490f0dd829cc71 (patch) | |
tree | 765ad542052944ac2a9d771ab3e687aef0ad3a74 | |
parent | c88580c400cec2d06fdc3477db9efa5350770c65 (diff) | |
download | bcm5719-llvm-a13714ea5f8e95c5969271b74d490f0dd829cc71.tar.gz bcm5719-llvm-a13714ea5f8e95c5969271b74d490f0dd829cc71.zip |
Update to match LLVM r300135.
llvm-svn: 300141
-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. |