From ba3fdc9daf918d9fecfc173d9aef70b5c18bd549 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 10 Sep 2007 22:54:34 +0000 Subject: [PATCH] Fixed isFunctionPointerType to correctly handle typedefs. llvm-svn: 41814 --- clang/include/clang/AST/Type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 0a851693c616..9c853e321b29 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -870,7 +870,7 @@ inline bool Type::isPointerType() const { return isa(CanonicalType); } inline bool Type::isFunctionPointerType() const { - if (const PointerType* T = dyn_cast(this)) + if (const PointerType* T = getAsPointerType()) return T->getPointeeType()->isFunctionType(); else return false;