aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PathDiagnostic.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-26 21:42:51 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-26 21:42:51 +0000
commitb77370289e818469250c640e1aa50b25ecffbce1 (patch)
treedd9c4e2138d82b466784a6b7151b69fba86f5725 /lib/Analysis/PathDiagnostic.cpp
parenta54650079b2aa7c683c05e4d5deea25c76ce3630 (diff)
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PathDiagnostic.cpp')
-rw-r--r--lib/Analysis/PathDiagnostic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/PathDiagnostic.cpp b/lib/Analysis/PathDiagnostic.cpp
index d719aa88b5..1441088e54 100644
--- a/lib/Analysis/PathDiagnostic.cpp
+++ b/lib/Analysis/PathDiagnostic.cpp
@@ -140,6 +140,8 @@ void PathDiagnosticClient::HandleDiagnostic(Diagnostic::Level DiagLevel,
//===----------------------------------------------------------------------===//
FullSourceLoc PathDiagnosticLocation::asLocation() const {
+ // Note that we want a 'switch' here so that the compiler can warn us in
+ // case we add more cases.
switch (K) {
case SingleLoc:
case Range: