[cfe-commits] r41814 - /cfe/trunk/include/clang/AST/Type.h
Ted Kremenek
kremenek at apple.com
Mon Sep 10 15:54:34 PDT 2007
Author: kremenek
Date: Mon Sep 10 17:54:34 2007
New Revision: 41814
URL: http://llvm.org/viewvc/llvm-project?rev=41814&view=rev
Log:
Fixed isFunctionPointerType to correctly handle typedefs.
Modified:
cfe/trunk/include/clang/AST/Type.h
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=41814&r1=41813&r2=41814&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Mon Sep 10 17:54:34 2007
@@ -870,7 +870,7 @@
return isa<PointerType>(CanonicalType);
}
inline bool Type::isFunctionPointerType() const {
- if (const PointerType* T = dyn_cast<PointerType>(this))
+ if (const PointerType* T = getAsPointerType())
return T->getPointeeType()->isFunctionType();
else
return false;
More information about the cfe-commits
mailing list