[lldb-dev] LLVM-C

Giannis Zamanis via lldb-dev lldb-dev at lists.llvm.org
Mon Jun 4 19:13:27 PDT 2018


Hello,

I am writing a compiler using llvm-c api and  i want to have
variable-length arrays as arguments in functions.I have tried using
zero-sized type array as the typical parameter in the function definition,
but when i call the function with a normal-sized array as argument it
throws error due to mismatch in types. I can't find a workaround for this.
Example:
define i32 @ha([0 x i32]*)
%funccall = call i32 @ha([20 x i32]* %only_l)

Thank you for your time,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180605/1752abcb/attachment-0001.html>


More information about the lldb-dev mailing list