[cfe-commits] [PATCH] Warn when non-POD types are passed into va_arg

David Majnemer david.majnemer at gmail.com
Fri May 20 00:48:24 PDT 2011


All sorts of weird things can happen if va_arg can spit out a non-POD type.

Unless I missed something, the attached patch should properly diagnose
when this is detectable and give a warning in the non-pod-varargs
group.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: va_arg_non_pod.patch
Type: application/octet-stream
Size: 2140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110520/658d12d1/attachment.obj>


More information about the cfe-commits mailing list