gcc_jit_context_new_union_type()

David Malcolm dmalcolm@redhat.com
Thu Jan 1 00:00:00 GMT 2015


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




More information about the Jit mailing list