<div dir="ltr"><div><div><div><div>Hi,<br></div>This patch fixes bug 19785 and adds a new test case for the problem.<br><a href="https://llvm.org/bugs/show_bug.cgi?id=19785">https://llvm.org/bugs/show_bug.cgi?id=19785</a><br><br></div>In a case like:<br></div>if ( ptr == NULL );<br></div>the check used to consider the definition location of NULL, instead of the current line.<br><br><div><div><div><div>(This is the first time I am attaching a patch, please inform me if I do something wrong)<br><br></div></div></div></div></div>