[PATCH] Allow pointer decay and qual stripping for _Generic

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 16:05:17 PST 2015


LGTM, thanks!

On Wed, Nov 4, 2015 at 4:00 PM, Aaron Ballman via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> On Wed, Nov 4, 2015 at 5:46 PM, Richard Smith <richard at metafoo.co.uk>
> wrote:
> > On Wed, Nov 4, 2015 at 2:45 PM, Richard Smith <richard at metafoo.co.uk>
> wrote:
> >>
> >> It'd be simpler and would more directly match the C specification (and
> >> would handle a few other cases better, such as placeholder types and
> atomic
> >> types) if you instead passed the operand through DefaultLvalueConversion
> >
> >
> > or rather, DefaultFunctionArrayLvalueConversion =)
>
> That was the magic incantation I didn't find before; thank you for
> pointing it out! Updated patch attached.
>
> ~Aaron
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151104/bb1a9c71/attachment.html>


More information about the cfe-commits mailing list