[PATCH] Allow pointer decay and qual stripping for _Generic

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 16:00:31 PST 2015


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generic.patch
Type: application/octet-stream
Size: 1910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151104/581117b7/attachment.obj>


More information about the cfe-commits mailing list