Fixed isFunctionPointerType to correctly handle typedefs.

llvm-svn: 41814
This commit is contained in:
Ted Kremenek 2007-09-10 22:54:34 +00:00
parent 62a48cea56
commit ba3fdc9daf
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ inline bool Type::isPointerType() const {
return isa<PointerType>(CanonicalType); return isa<PointerType>(CanonicalType);
} }
inline bool Type::isFunctionPointerType() const { inline bool Type::isFunctionPointerType() const {
if (const PointerType* T = dyn_cast<PointerType>(this)) if (const PointerType* T = getAsPointerType())
return T->getPointeeType()->isFunctionType(); return T->getPointeeType()->isFunctionType();
else else
return false; return false;