diff options
Diffstat (limited to 'llvm/lib/TextAPI/InterfaceFile.cpp')
| -rw-r--r-- | llvm/lib/TextAPI/InterfaceFile.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/TextAPI/InterfaceFile.cpp b/llvm/lib/TextAPI/InterfaceFile.cpp index ce2feb65c9ec..e2253723659e 100644 --- a/llvm/lib/TextAPI/InterfaceFile.cpp +++ b/llvm/lib/TextAPI/InterfaceFile.cpp @@ -59,14 +59,11 @@ void InterfaceFile::addRPath(StringRef RPath, const Target &InputTarget) { return; using RPathEntryT = const std::pair<Target, std::string>; RPathEntryT Entry(InputTarget, RPath); - auto Iter = - lower_bound(RPaths, Entry, - [](RPathEntryT &LHS, RPathEntryT &RHS) { return LHS < RHS; }); - if ((Iter != RPaths.end()) && (*Iter == Entry)) + if (is_contained(RPaths, Entry)) return; - RPaths.emplace(Iter, Entry); + RPaths.emplace_back(Entry); } void InterfaceFile::addTarget(const Target &Target) { |
