summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LibDriver/LibDriver.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-04-12 23:43:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-04-12 23:43:58 +0000
commit6fd4bc6b22eed5e02217862328c1fcbe5c96eab5 (patch)
treeeec89b5d17fc4dbd1f1394e47d2a092a05f79ca0 /llvm/lib/LibDriver/LibDriver.cpp
parent9b7fcdcb57a71e74d8fd65feb7089bd22b4367ef (diff)
downloadbcm5719-llvm-6fd4bc6b22eed5e02217862328c1fcbe5c96eab5.tar.gz
bcm5719-llvm-6fd4bc6b22eed5e02217862328c1fcbe5c96eab5.zip
Fix some ArgList uses after API change in r300135.
llvm-svn: 300139
Diffstat (limited to 'llvm/lib/LibDriver/LibDriver.cpp')
-rw-r--r--llvm/lib/LibDriver/LibDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LibDriver/LibDriver.cpp b/llvm/lib/LibDriver/LibDriver.cpp
index bcdec4f7a93..c50629d7150 100644
--- a/llvm/lib/LibDriver/LibDriver.cpp
+++ b/llvm/lib/LibDriver/LibDriver.cpp
@@ -121,7 +121,7 @@ int llvm::libDriverMain(llvm::ArrayRef<const char*> ArgsArr) {
for (auto *Arg : Args.filtered(OPT_UNKNOWN))
llvm::errs() << "ignoring unknown argument: " << Arg->getSpelling() << "\n";
- if (Args.filtered_begin(OPT_INPUT) == Args.filtered_end()) {
+ if (!Args.hasArgNoClaim(OPT_INPUT)) {
// No input files. To match lib.exe, silently do nothing.
return 0;
}
OpenPOWER on IntegriCloud