aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 20:44:02 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 20:44:02 +0000
commit7f5e6cd7517b80227fad80c77ceb95abb00632e8 (patch)
treefc630aace764a0543d31943278828f4f7f40770d
parenta1cb4737b04a92f57b1b9dcd8a24c68db5035401 (diff)
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3053 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Type.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index e7a192bac9..99e038af8f 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -228,8 +228,12 @@ public:
#include "llvm/Type.def"
private:
- class TypeIterator : public std::bidirectional_iterator<const Type,
- ptrdiff_t> {
+ class TypeIterator
+#if __GNUC__ == 3
+ : public std::iterator<std::bidirectional_iterator_tag, const Type> {
+#else
+ : public std::bidirectional_iterator<const Type, ptrdiff_t> {
+#endif
const Type * const Ty;
unsigned Idx;