inline isIntegral to make this method look like classof for all other
authorChris Lattner <sabre@nondot.org>
Fri, 12 Jan 2007 22:11:53 +0000 (22:11 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Jan 2007 22:11:53 +0000 (22:11 +0000)
derived types

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33144 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DerivedTypes.h

index 78759f1dea97fd3d1c5cc3268f7c8313ee6605bd..ccef4cbeabd8494a4b1f6b4102b98c8caf70284b 100644 (file)
@@ -103,7 +103,9 @@ public:
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const IntegerType *T) { return true; }
-  static inline bool classof(const Type *T) { return T->isIntegral(); }
+  static inline bool classof(const Type *T) {
+    return T->getTypeID() == IntegerTyID;
+  }
 };