aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ADT/PriorityQueue.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:17:04 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:17:04 +0000
commitb915e9e0fc85ba6f398b3fab0db6a81a8913af94 (patch)
tree98b8f811c7aff2547cab8642daf372d6c59502fb /include/llvm/ADT/PriorityQueue.h
parent6421cca32f69ac849537a3cff78c352195e99f1b (diff)
Notes
Diffstat (limited to 'include/llvm/ADT/PriorityQueue.h')
-rw-r--r--include/llvm/ADT/PriorityQueue.h3
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) {