forked from OSchip/llvm-project
Fixed isFunctionPointerType to correctly handle typedefs.
llvm-svn: 41814
This commit is contained in:
parent
62a48cea56
commit
ba3fdc9daf
|
@ -870,7 +870,7 @@ inline bool Type::isPointerType() const {
|
||||||
return isa<PointerType>(CanonicalType);
|
return isa<PointerType>(CanonicalType);
|
||||||
}
|
}
|
||||||
inline bool Type::isFunctionPointerType() const {
|
inline bool Type::isFunctionPointerType() const {
|
||||||
if (const PointerType* T = dyn_cast<PointerType>(this))
|
if (const PointerType* T = getAsPointerType())
|
||||||
return T->getPointeeType()->isFunctionType();
|
return T->getPointeeType()->isFunctionType();
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue