[PATCH] Promote NPCs used as arguments to variadic functions
David Majnemer
david.majnemer at gmail.com
Wed Sep 24 16:46:49 PDT 2014
On Wed, Sep 24, 2014 at 2:51 PM, Nico Weber <thakis at chromium.org> wrote:
> On Wed, Sep 24, 2014 at 2:20 PM, David Majnemer <david.majnemer at gmail.com>
> wrote:
>
>> Perhaps a warning should be added so code doesn't "miscompile" when
>> compiled with GCC?
>>
>
> In practice, it's only miscompiled with GCC if someone undefines NULL and
> redefines it. By default, NULL is __null in gcc, which also does the right
> thing.
>
> I believe warning on this would be very noisy.
>
Fair enough.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140924/2ef0d999/attachment.html>
More information about the cfe-commits
mailing list