[llvm-dev] Problem of getNumOperands() for CallInst
Tingyuan LIANG via llvm-dev
llvm-dev at lists.llvm.org
Tue May 28 23:45:40 PDT 2019
I got a interesting problem when calling getNumOperands() of CallInst.
call void @_Z2f2PA100_i([100 x i32]* nonnull %arraydecay)
If I use getNumOperands(), it will return 2.
However, if I use getCalledFunction()->getNumParams(), it will return 1.
According to the IR, I think the number of operands of the call instruction should be 1.
I wonder what is going on for this situation.
Thanks in advance for your time and suggestion!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev