diff options
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 |