Hi,

On 5 June 2018 at 03:13, Giannis Zamanis via lldb-dev
<lldb-dev@lists.llvm.org> wrote:
> 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.

You'll need a bitcast. Either bitcast your %only_l (a [20 x i32]*) to
[0 x i32]* or bitcast your function @ha so that it can accept a [20 x
i32]*. The first is probably simpler to implement, but both should
work.

Cheers.

Tim.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
  • [lldb-dev] LLVM-C Giannis Zamanis via lldb-dev
    • Re: [lldb-dev] LLVM-C Tim Northover via lldb-dev

Reply via email to