Index: cfe/trunk/lib/Sema/JumpDiagnostics.cpp =================================================================== --- cfe/trunk/lib/Sema/JumpDiagnostics.cpp +++ cfe/trunk/lib/Sema/JumpDiagnostics.cpp @@ -550,10 +550,8 @@ // order to avoid blowing out the stack. while (true) { Stmt *Next; - if (CaseStmt *CS = dyn_cast(SubStmt)) - Next = CS->getSubStmt(); - else if (DefaultStmt *DS = dyn_cast(SubStmt)) - Next = DS->getSubStmt(); + if (SwitchCase *SC = dyn_cast(SubStmt)) + Next = SC->getSubStmt(); else if (LabelStmt *LS = dyn_cast(SubStmt)) Next = LS->getSubStmt(); else