<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ah, nevermind.  I misread the patch.<div><br><div><div>On Sep 9, 2011, at 9:43 PM, Ted Kremenek wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 9, 2011, at 5:02 PM, Chandler Carruth 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; ">Modified: cfe/trunk/lib/Analysis/CFG.cpp<br>URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=139437&r1=139436&r2=139437&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=139437&r1=139436&r2=139437&view=diff</a><br>==============================================================================<br>--- cfe/trunk/lib/Analysis/CFG.cpp (original)<br>+++ cfe/trunk/lib/Analysis/CFG.cpp Fri Sep  9 19:02:34 2011<br>@@ -723,9 +723,7 @@<br>  if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) {<br>    for (CompoundStmt::body_iterator BI = CS->body_begin(), BE = CS->body_end()<br>        ; BI != BE; ++BI) {<br>-      Stmt *SI = *BI;<br>-      if (LabelStmt *LS = dyn_cast<LabelStmt>(SI))<br>-        SI = LS->getSubStmt();<br>+      Stmt *SI = (*BI)->stripLabelLikeStatements();<br>      if (DeclStmt *DS = dyn_cast<DeclStmt>(SI))<br>        Scope = addLocalScopeForDeclStmt(DS, Scope);<br>    }<br>@@ -734,9 +73</span></blockquote></div><br><div>Chandler,</div><div><br></div><div>I don't think this is right.  The CFG builder explicitly processes CaseStmts and DefaultStmts.  It shouldn't be skipping over them here.</div></div></blockquote></div><br></div></body></html>