[llvm-dev] Why getNumOperands() incorrectly returns 0?
Alberto Barbaro via llvm-dev
llvm-dev at lists.llvm.org
Sat Mar 16 00:25:20 PDT 2019
Hi all,
I have encountered a weird case that I cannot understand. Inside the
visitStoreInst I have a reference (F) to the function png_set_mem_fn. If I
do F->dump() i can set the IR of that function correctly e.g.:
; Function Attrs: nounwind uwtable
define void @png_set_mem_fn(%struct.png_struct_def.68* noalias %png_ptr,
i8* %mem_ptr, i8* (%struct.png_struct_def.68*, i64)* %malloc_fn, void
(%struct.png_struct_def.68*, i8*)* %free_fn) #5 {
...
}
The problem is that when I do F->getNumOperands() I have 0 as result.
Can you explain me why please?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190316/4375e976/attachment.html>
More information about the llvm-dev
mailing list