diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-22 22:29:46 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-22 22:29:46 +0000 |
commit | 8b9045574329ebac6270dfab7ebadce3179bced1 (patch) | |
tree | a15cf56e94546e8b55e8b482aecef9e1fb11170e /lib/Analysis/BugReporter.cpp | |
parent | 5b7dcce86c79370f16fd89ecebd454a3b4eec73c (diff) |
For default branches in switch statements with no default label, print out
the line we are going to.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index be1c52d521..68b6ad76be 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -232,9 +232,7 @@ void BugReporter::GeneratePathDiagnostic(PathDiagnostic& PD, 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"; |