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:
6a1a28d
)
Const method must use const_iterator.
author
Chris Lattner
<sabre@nondot.org>
Mon, 5 Feb 2007 23:18:32 +0000
(23:18 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 5 Feb 2007 23:18:32 +0000
(23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33933
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 93a9b1c6b50706471131e21b4e39dd35050d09b7..df9e1e5b2d62b7cb220f7e01fb5097b4043a4b6c 100644
(file)
--- a/
include/llvm/ADT/UniqueVector.h
+++ b/
include/llvm/ADT/UniqueVector.h
@@
-1,4
+1,3
@@
-
//===-- llvm/ADT/UniqueVector.h ---------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
@@
-56,7
+55,7
@@
public:
/// not found.
unsigned idFor(const T &Entry) const {
// 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.
if (MI != Map.end()) return MI->second;