From: Ted Kremenek Date: Mon, 10 Sep 2007 22:54:34 +0000 (+0000) Subject: Fixed isFunctionPointerType to correctly handle typedefs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01c2c6e3c94a3fa2ac15851b4af5de6dc3ae2af8;p=clang Fixed isFunctionPointerType to correctly handle typedefs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41814 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 0a851693c6..9c853e321b 100644 --- a/include/clang/AST/Type.h +++ b/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;