From: David Malcolm <dmalcolm@redhat.com>
To: Dibyendu Majumdar <mobile@majumdar.org.uk>
Cc: jit@gcc.gnu.org
Subject: Re: gcc_jit_context_new_union_type()
Date: Thu, 01 Jan 2015 00:00:00 -0000 [thread overview]
Message-ID: <1434142035.31193.21.camel@surprise> (raw)
In-Reply-To: <CACXZuxd_Db-hoT7GLU_JjrQuffxREG0Ruq5_DzEudtybqHotYQ@mail.gmail.com>
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
next prev parent reply other threads:[~2015-06-12 20:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 0:00 gcc_jit_context_new_union_type() Dibyendu Majumdar
2015-01-01 0:00 ` David Malcolm [this message]
2015-01-01 0:00 ` gcc_jit_context_new_union_type() Dibyendu Majumdar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434142035.31193.21.camel@surprise \
--to=dmalcolm@redhat.com \
--cc=jit@gcc.gnu.org \
--cc=mobile@majumdar.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).