[llvm-dev] How to determine it is a function pointer or not?

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu May 12 09:39:54 PDT 2016


On 12 May 2016 at 06:09, PeiLIU via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> The 3rd argument's type only is a PointerType, then I don't know how to
> determine it is a function pointer or not?

PointerType inherits from SequentialType so you'd use
Ty->getElementType()->isFunctionType().

Cheers.

Tim.


More information about the llvm-dev mailing list