[PATCH] Fix for Bug 19785 : -Wempty-body false negative on NULL check

Manasij Mukherjee manasij7479 at gmail.com
Sat Mar 14 11:38:59 PDT 2015


Hi,
This patch fixes bug 19785 and adds a new test case for the problem.
https://llvm.org/bugs/show_bug.cgi?id=19785

In a case like:
if ( ptr == NULL );
the check used to consider the definition location of NULL, instead of the
current line.

(This is the first time I am attaching a patch, please inform me if I do
something wrong)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150315/a62076d2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix19785.patch
Type: text/x-patch
Size: 1391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150315/a62076d2/attachment.bin>


More information about the cfe-commits mailing list