summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-11-13 03:30:29 +0000
committerRui Ueyama <ruiu@google.com>2013-11-13 03:30:29 +0000
commite20474d38c7ccb322c284e069c12a432c65d9f46 (patch)
treed3265299ef4417b4bdfb4bcd0d084cbf37e280e0 /lld/lib/Driver/WinLinkDriver.cpp
parent2235bff2b916eb1564e17b39880687a19aaf50f3 (diff)
downloadbcm5719-llvm-e20474d38c7ccb322c284e069c12a432c65d9f46.tar.gz
bcm5719-llvm-e20474d38c7ccb322c284e069c12a432c65d9f46.zip
Revert "Use empty() instead of size() == 0."
This reverts commit r194551 because it broke the buildbot. llvm-svn: 194552
Diffstat (limited to 'lld/lib/Driver/WinLinkDriver.cpp')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 35cf6dd10d0..9f692c1942b 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -911,7 +911,7 @@ WinLinkDriver::parse(int argc, const char *argv[], PECOFFLinkingContext &ctx,
}
}
- if (inputElements.empty() && !isReadingDirectiveSection) {
+ if (inputElements.size() == 0 && !isReadingDirectiveSection) {
diagnostics << "No input files\n";
return false;
}
OpenPOWER on IntegriCloud