<div dir="ltr">Added missing testcase in r251313.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 October 2015 at 17:45, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 26, 2015 at 6:32 AM, Gabor Horvath via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: xazax<br>
Date: Mon Oct 26 08:32:26 2015<br>
New Revision: 251289<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=251289&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=251289&view=rev</a><br>
Log:<br>
[analyzer] Fixed a rare crash when analyzing lambda functions.<br></blockquote><div><br></div><div>Test case?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Modified:<br>
cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp<br>
<br>
Modified: cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp?rev=251289&r1=251288&r2=251289&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp?rev=251289&r1=251288&r2=251289&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp (original)<br>
+++ cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp Mon Oct 26 08:32:26 2015<br>
@@ -1022,7 +1022,7 @@ MemRegionManager::getCXXThisRegion(QualT<br>
// 'this' refers to a this to the enclosing scope, there is no right region to<br>
// return.<br>
while (!LC->inTopFrame() &&<br>
- PT != D->getThisType(getContext())->getAs<PointerType>()) {<br>
+ (!D || PT != D->getThisType(getContext())->getAs<PointerType>())) {<br>
LC = LC->getParent();<br>
D = dyn_cast<CXXMethodDecl>(LC->getDecl());<br>
}<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div></div>
</blockquote></div><br></div>