projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc9ae37
)
Use find instead of lower_bounds.
author
Jim Laskey
<jlaskey@mac.com>
Thu, 26 Jan 2006 20:30:51 +0000
(20:30 +0000)
committer
Jim Laskey
<jlaskey@mac.com>
Thu, 26 Jan 2006 20:30:51 +0000
(20:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25657
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/UniqueVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/UniqueVector.h
b/include/llvm/ADT/UniqueVector.h
index e888678675eff4a7ae4c2ea3e875046cb4a6f505..93a9b1c6b50706471131e21b4e39dd35050d09b7 100644
(file)
--- a/
include/llvm/ADT/UniqueVector.h
+++ b/
include/llvm/ADT/UniqueVector.h
@@
-56,10
+56,10
@@
public:
/// not found.
unsigned idFor(const T &Entry) const {
// Search for entry in the map.
- typename std::map<T, unsigned>::iterator MI = Map.
lower_bou
nd(Entry);
+ typename std::map<T, unsigned>::iterator MI = Map.
fi
nd(Entry);
// See if entry exists, if so return ID.
- if (MI != Map.end()
&& MI->first == Entry
) return MI->second;
+ if (MI != Map.end()) return MI->second;
// No luck.
return 0;