]> granicus.if.org Git - clang/commitdiff
Add comment.
authorTed Kremenek <kremenek@apple.com>
Thu, 26 Mar 2009 21:42:51 +0000 (21:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 26 Mar 2009 21:42:51 +0000 (21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67776 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/PathDiagnostic.cpp

index d719aa88b508f24b67a3e899eda245a1c55c9289..1441088e547e90ed1e7f590068a52cb280bb47d9 100644 (file)
@@ -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: