mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Const method must use const_iterator.
llvm-svn: 33933
This commit is contained in:
parent
c7487c93da
commit
4ec6868104
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
//===-- llvm/ADT/UniqueVector.h ---------------------------------*- C++ -*-===//
|
//===-- llvm/ADT/UniqueVector.h ---------------------------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
@ -56,7 +55,7 @@ public:
|
|||||||
/// not found.
|
/// not found.
|
||||||
unsigned idFor(const T &Entry) const {
|
unsigned idFor(const T &Entry) const {
|
||||||
// Search for entry in the map.
|
// Search for entry in the map.
|
||||||
typename std::map<T, unsigned>::iterator MI = Map.find(Entry);
|
typename std::map<T, unsigned>::const_iterator MI = Map.find(Entry);
|
||||||
|
|
||||||
// See if entry exists, if so return ID.
|
// See if entry exists, if so return ID.
|
||||||
if (MI != Map.end()) return MI->second;
|
if (MI != Map.end()) return MI->second;
|
||||||
|
Loading…
Reference in New Issue
Block a user