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:
bcaae8d
)
inline isIntegral to make this method look like classof for all other
author
Chris Lattner
<sabre@nondot.org>
Fri, 12 Jan 2007 22:11:53 +0000
(22:11 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/DerivedTypes.h
b/include/llvm/DerivedTypes.h
index 78759f1dea97fd3d1c5cc3268f7c8313ee6605bd..ccef4cbeabd8494a4b1f6b4102b98c8caf70284b 100644
(file)
--- a/
include/llvm/DerivedTypes.h
+++ b/
include/llvm/DerivedTypes.h
@@
-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;
+ }
};