diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-09-10 22:54:34 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-09-10 22:54:34 +0000 |
| commit | ba3fdc9daf918d9fecfc173d9aef70b5c18bd549 (patch) | |
| tree | 5e17650a9d1ef38f9a26598be88caf4e072280b7 | |
| parent | 62a48cea564d7c1193f91b5dd67d1d248c8ae1d1 (diff) | |
| download | bcm5719-llvm-ba3fdc9daf918d9fecfc173d9aef70b5c18bd549.tar.gz bcm5719-llvm-ba3fdc9daf918d9fecfc173d9aef70b5c18bd549.zip | |
Fixed isFunctionPointerType to correctly handle typedefs.
llvm-svn: 41814
| -rw-r--r-- | clang/include/clang/AST/Type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 0a851693c61..9c853e321b2 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<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; |

