Change args count in CallInstr

Hello,

I have a CallInstr for “functionA”. I renamed it to “functionB” but I want to decrease number of arguments as functionA accepts e.g two and functionB just one.

So far, I dont find any function to just replace args / set args size. Any idea?

Maybe other solution…

Is there any way to create a new CallInstr for functionB, copy things from CallInstr of functionB a copy N - 1 args from old one to new one?

Thanks