For default branches in switch statements with no default label, print out
the line we are going to.
llvm-svn: 50113
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index be1c52d..68b6ad7 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -232,9 +232,7 @@
switch (S->getStmtClass()) {
default:
- continue;
-
- case Stmt::DefaultStmtClass: {
+ case Stmt::DefaultStmtClass: {
os << "Control jumps to the 'default' case at line "
<< SMgr.getLogicalLineNumber(S->getLocStart()) << ".\n";