[cfe-commits] r50242 - /cfe/trunk/lib/Analysis/BugReporter.cpp
Ted Kremenek
kremenek at apple.com
Thu Apr 24 18:29:57 PDT 2008
Author: kremenek
Date: Thu Apr 24 20:29:56 2008
New Revision: 50242
URL: http://llvm.org/viewvc/llvm-project?rev=50242&view=rev
Log:
Don't emit empty strings for path diagnostics when taking the default branch of a switch statement that has no label.
Modified:
cfe/trunk/lib/Analysis/BugReporter.cpp
Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=50242&r1=50241&r2=50242&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Thu Apr 24 20:29:56 2008
@@ -322,6 +322,13 @@
}
}
+ else {
+
+ // FIXME: Get line number.
+
+ os << "'Default' branch taken. "
+ "Execution continues after switch statement.";
+ }
PD.push_front(new PathDiagnosticPiece(L, os.str()));
break;
More information about the cfe-commits
mailing list