[llvm-dev] Change args count in CallInstr

Dávid Bolvanský via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 22 13:13:00 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180322/c3046408/attachment.html>


More information about the llvm-dev mailing list