diff options
Diffstat (limited to 'lld/lib/Driver/InputGraph.cpp')
| -rw-r--r-- | lld/lib/Driver/InputGraph.cpp | 4 |
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 (;;) { |

