From 4ec6868104a2fa467ff0038989a1a83a050c06ca Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 5 Feb 2007 23:18:32 +0000 Subject: [PATCH] Const method must use const_iterator. llvm-svn: 33933 --- include/llvm/ADT/UniqueVector.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/llvm/ADT/UniqueVector.h b/include/llvm/ADT/UniqueVector.h index 93a9b1c6b50..df9e1e5b2d6 100644 --- 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::iterator MI = Map.find(Entry); + typename std::map::const_iterator MI = Map.find(Entry); // See if entry exists, if so return ID. if (MI != Map.end()) return MI->second;