[llvm-dev] Why does LLVm 3.8.0 recognize fputs_unlocked as a vararg function?

Dipanjan Das via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 27 03:01:50 PDT 2017


Considering F represents the function fputs_unlocked() in an LLVM pass,

 => F->isVarArg() returns true
 => F->getNumParams() returns 0
 => *F returns declare i32 @fputs_unlocked(...)

The signature of fputs_unlocked from man page is:
int fputs_unlocked(const char *s, FILE *stream);

Can anybody explain why fputs_unlocked() is recognized as a vararg method
while it accepts two fixed parameters?

-- 

Thanks & Regards,
Dipanjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171027/b8d2a3e3/attachment.html>


More information about the llvm-dev mailing list