If the function call is direct, you can get the type of the function through the following code.
Function * fun = callInst->getCalledFunction(); Function * funType = fun->getFunctionType();
However, if the call is indirect, that is, through a function pointer, getCalledFunction returns NULL. So my question is how to get the type of the function when the function is called using the function pointer.
Metallicpriest
source share