From 01c2c6e3c94a3fa2ac15851b4af5de6dc3ae2af8 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41814 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1