diff --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h --- a/llvm/include/llvm/IR/Type.h +++ b/llvm/include/llvm/IR/Type.h @@ -220,7 +220,9 @@ bool isArrayTy() const { return getTypeID() == ArrayTyID; } /// True if this is an instance of PointerType. - bool isPointerTy() const { return getTypeID() == PointerTyID; } + bool isPointerTy() const { + return getTypeID() == PointerTyID || getTypeID() == TypedPointerTyID; + } /// True if this is an instance of an opaque PointerType. bool isOpaquePointerTy() const;