[lldb-dev] LLVM-C

Tim Northover via lldb-dev lldb-dev at lists.llvm.org
Tue Jun 5 02:44:03 PDT 2018


Hi,

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


More information about the lldb-dev mailing list