Displaying 1 result from an estimated 1 matches for "caliinstr".
2018 Aug 16
2
Convert Function Pointer Call to Function Call at the IR Level
...nocapture) #0 !dbg !963916 {
...
I wrote a function pass and found the mentioned function pointer call
(here, stored in "CallInstr") and set the call target as follows:
...
Module *theModule = F.getParent();
Function *targetFunc = theModule->getFunction("demux_lavf_control");
CalIInstr->setCalledFunction(targetFunc);
...
"F" is the function containing the call. But it leads to the following
error:
...
Call parameter type does not match function signature!
%struct.demuxer* %0
%struct.demuxer.2657* %10 = tail call i32
@demux_lavf_control(%struct.demuxer*
nonnull %0,...