Fix previous checkin
authorChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 17:58:58 +0000 (17:58 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 17:58:58 +0000 (17:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3093 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InstForest.h

index 6a05e2a76226fe163cec03870dd49fc9481e04ae..5d27c8191591ab7cc80c5626f884b47bb9ab00d4 100644 (file)
@@ -142,6 +142,8 @@ template<class Payload>
 class InstForest : public std::vector<InstTreeNode<Payload> *> {
   friend class InstTreeNode<Payload>;
 
+  typedef std::vector<InstTreeNode<Payload> *>::const_iterator const_iterator;
+
   // InstMap - Map contains entries for ALL instructions in the method and the
   // InstTreeNode that they correspond to.
   //
@@ -196,7 +198,7 @@ public:
 
   // print - Called by operator<< below...
   void print(std::ostream &out) const {
-    for (typename const_iterator I = begin(), E = end(); I != E; ++I)
+    for (const_iterator I = begin(), E = end(); I != E; ++I)
       out << *I;
   }
 };