[LLVMdev] Fwd: Passing structures by value on Windows
Eli Friedman
eli.friedman at gmail.com
Sat Jun 5 14:49:59 PDT 2010
On Sat, Jun 5, 2010 at 2:16 PM, lost <lostfreeman at gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: lost <lostfreeman at gmail.com>
> Date: 2010/6/5
> Subject: Re: [LLVMdev] Passing structures by value on Windows
> To: Anton Korobeynikov <anton at korobeynikov.info>
>
>
> Ok, but how to bitcast structure? Documentation says that bitcast does not
> applicable to aggregate values.
Just make an alloca, store the members of the struct to it, cast it to
an i64* (or whatever is appropriate), and load from it.
-Eli
More information about the llvm-dev
mailing list