<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - False positive: Undefined or garbage value returned to caller"
href="http://llvm.org/bugs/show_bug.cgi?id=16021">16021</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>False positive: Undefined or garbage value returned to caller
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.1
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kyle@omnigroup.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10519" name="attach_10519" title="A program which causes the analyzer to emit a spurious "Undefined or garbage value returned to caller" warning">attachment 10519</a> <a href="attachment.cgi?id=10519&action=edit" title="A program which causes the analyzer to emit a spurious "Undefined or garbage value returned to caller" warning">[details]</a></span>
A program which causes the analyzer to emit a spurious "Undefined or garbage
value returned to caller" warning
The attached program causes the analyzer to emit "Undefined or garbage value
returned to caller" for the return value of -cachedObjectWithNumber:. The
analyzer seems to skip over the execution of the while loop entirely, even
though by virtue of the enclosing if statement, it is guaranteed to execute at
least once.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>