Update the CallGraph after adding a call

Hi,

I’m writing a transformation that adds function calls during the CallGraphSCC pass, and I’m getting the error:

“CallGraphSCCPass did not update the CallGraph correctly”.

I guess I should update the Call graph somehow, with the new calls I’ve added (using CreateCall function), but I don’t know how to do it, and I haven’t found similar code.

Any suggestions?

Thanks,

Tehila.