summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/InputGraph.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/InputGraph.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/InputGraph.cpp')
-rw-r--r--lld/lib/Driver/InputGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Driver/InputGraph.cpp b/lld/lib/Driver/InputGraph.cpp
index 3f464618c9b..be7fea0c18c 100644
--- a/lld/lib/Driver/InputGraph.cpp
+++ b/lld/lib/Driver/InputGraph.cpp
@@ -133,7 +133,7 @@ uint32_t ControlNode::getResolveState() const {
/// \brief Set the resolve state for the current element
/// thats processed by the resolver.
void ControlNode::setResolveState(uint32_t resolveState) {
- if (_elements.empty())
+ if (_elements.size() == 0)
return;
_elements[_currentElementIndex]->setResolveState(resolveState);
}
@@ -151,7 +151,7 @@ SimpleFileNode::SimpleFileNode(StringRef path, int64_t ordinal)
/// of the input elements contained in the group.
ErrorOr<File &> Group::getNextFile() {
// If there are no elements, move on to the next input element
- if (_elements.empty())
+ if (_elements.size() == 0)
return make_error_code(InputGraphError::no_more_files);
for (;;) {
OpenPOWER on IntegriCloud