aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/InterfaceFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/TextAPI/InterfaceFile.cpp')
-rw-r--r--llvm/lib/TextAPI/InterfaceFile.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/TextAPI/InterfaceFile.cpp b/llvm/lib/TextAPI/InterfaceFile.cpp
index a201554d..b35f7fd 100644
--- a/llvm/lib/TextAPI/InterfaceFile.cpp
+++ b/llvm/lib/TextAPI/InterfaceFile.cpp
@@ -421,12 +421,11 @@ bool InterfaceFile::operator==(const InterfaceFile &O) const {
return false;
}
- if (!std::equal(Documents.begin(), Documents.end(), O.Documents.begin(),
- O.Documents.end(),
- [](const std::shared_ptr<InterfaceFile> LHS,
- const std::shared_ptr<InterfaceFile> RHS) {
- return *LHS == *RHS;
- }))
+ if (!llvm::equal(Documents, O.Documents,
+ [](const std::shared_ptr<InterfaceFile> &LHS,
+ const std::shared_ptr<InterfaceFile> &RHS) {
+ return *LHS == *RHS;
+ }))
return false;
return true;
}