Changes in directory llvm/include/llvm/ADT:
UniqueVector.h updated: 1.5 -> 1.6 --- Log message: Use find instead of lower_bounds. --- Diffs of the changes: (+2 -2) UniqueVector.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/ADT/UniqueVector.h diff -u llvm/include/llvm/ADT/UniqueVector.h:1.5 llvm/include/llvm/ADT/UniqueVector.h:1.6 --- llvm/include/llvm/ADT/UniqueVector.h:1.5 Thu Jan 26 14:09:35 2006 +++ llvm/include/llvm/ADT/UniqueVector.h Thu Jan 26 14:30:51 2006 @@ -56,10 +56,10 @@ /// not found. unsigned idFor(const T &Entry) const { // Search for entry in the map. - typename std::map<T, unsigned>::iterator MI = Map.lower_bound(Entry); + typename std::map<T, unsigned>::iterator MI = Map.find(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; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits