diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 |
| commit | b915e9e0fc85ba6f398b3fab0db6a81a8913af94 (patch) | |
| tree | 98b8f811c7aff2547cab8642daf372d6c59502fb /include/llvm/ADT/PriorityQueue.h | |
| parent | 6421cca32f69ac849537a3cff78c352195e99f1b (diff) | |
Notes
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) { |
