[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc_jit_context_new_union_type()
On Fri, 2015-06-12 at 21:45 +0100, Dibyendu Majumdar wrote:
> Should gcc_jit_context_new_union_type() return gcc_jit_struct* instead
> of gcc_jit_type*?
No, because you can't call
gcc_jit_struct_set_fields
on a union type, only on the result of gcc_jit_context_new_opaque_struct
(once). Having new_union_type return a gcc_jit_type gives the compiler
a way to warn about such a call.
Is this something that you need to do?
Dave