diff options
Diffstat (limited to 'include/llvm/ADT/PriorityQueue.h')
| -rw-r--r-- | include/llvm/ADT/PriorityQueue.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/PriorityQueue.h b/include/llvm/ADT/PriorityQueue.h index 827d0b346e591..8ba871e253043 100644 --- a/include/llvm/ADT/PriorityQueue.h +++ b/include/llvm/ADT/PriorityQueue.h @@ -46,8 +46,7 @@ public: /// void erase_one(const T &t) { // Linear-search to find the element. - typename Sequence::size_type i = - std::find(this->c.begin(), this->c.end(), t) - this->c.begin(); + typename Sequence::size_type i = find(this->c, t) - this->c.begin(); // Logarithmic-time heap bubble-up. while (i != 0) { |
