[PATCH] Promote NPCs used as arguments to variadic functions
Nico Weber
thakis at chromium.org
Wed Sep 24 14:51:15 PDT 2014
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140924/4f592400/attachment.html>
More information about the cfe-commits
mailing list