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.