<div class="gmail_quote"><div>Hi Anton, <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
> OK, I just need the same signature for both of those instructions.<br>
</div>Both are callinsts of same function, isn't that enough? Since it's a<br>
variadic function there is also a bitcast to proper type. So, looking<br>
for type of callee (not result, but function type!) you'll obtain the<br>
real "signature" of callee and if you'll strip all pointer cast you'll<br>
obtain the "declaration" (=variadic) type of the callee. This should<br>
be enough for almost all purposes. You should not try to invent some<br>
custom "comparison schemes", almost surely in such situation you're<br>
reinventing the wheel :)<br>
<div class="im"><br>
</div></blockquote></div>So I do this:<br><br>if (CallInst *cinst = cast<CallInst>(instr)) {<br>  const FunctionType *FTy = cinst->getCalledFunction()->getFunctionType();<br>}<br><br>What I get "i32 (i8*, ...)"<br>
How can I get something like "i32 (i8*, i32)"?<br><br>Thanks for your help.<br>Regards,<br>Artur<br><br>