<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On May 13, 2011, at 12:24 AM, Erik Cederstrand wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">I created a bug report some time ago<span class="Apple-converted-space"> </span><a href="http://llvm.org/bugs/show_bug.cgi?id=8914">http://llvm.org/bugs/show_bug.cgi?id=8914</a><span class="Apple-converted-space"> </span>I realize that fixing this is non-trivial, but it would be nice if the analyzer could at least handle the following:<br><br>if foo():<br><span class="Apple-tab-span" style="white-space: pre; "> </span>x = 5<br>else:<br><span class="Apple-tab-span" style="white-space: pre; "> </span>exit()<br>bar(x)<br><br>without complaining that x might be uninitialized.</span></blockquote></div><br><div>It's likely that 'exit' doesn't have a noreturn attribute. Adding that would not only make the compiler codegen better but also would prune tell the analyzer to prune out this path.</div></body></html>