diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:12:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:12:52 +0000 |
commit | 18961504fc2b299578dba817900a0696cf3ccc4d (patch) | |
tree | c34853ffc064b841932d0897e25305c81c3a7338 /include/llvm/Type.h | |
parent | a2204e1ff25265a1da00ecbb3ebb22c05acf7194 (diff) | |
download | llvm-18961504fc2b299578dba817900a0696cf3ccc4d.tar.gz llvm-18961504fc2b299578dba817900a0696cf3ccc4d.tar.bz2 llvm-18961504fc2b299578dba817900a0696cf3ccc4d.tar.xz |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 125fbc1d27..e7a192bac9 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -294,11 +294,8 @@ template <> struct GraphTraits<const Type*> { } }; -template <> inline bool isa<PointerType, const Type*>(const Type *Ty) { - return Ty->getPrimitiveID() == Type::PointerTyID; -} -template <> inline bool isa<PointerType, Type*>(Type *Ty) { - return Ty->getPrimitiveID() == Type::PointerTyID; +template <> inline bool isa_impl<PointerType, Type>(const Type &Ty) { + return Ty.getPrimitiveID() == Type::PointerTyID; } #endif |