[cfe-commits] r67776 - /cfe/trunk/lib/Analysis/PathDiagnostic.cpp

Ted Kremenek kremenek at apple.com
Thu Mar 26 14:42:51 PDT 2009


Author: kremenek
Date: Thu Mar 26 16:42:51 2009
New Revision: 67776

URL: http://llvm.org/viewvc/llvm-project?rev=67776&view=rev
Log:
Add comment.

Modified:
    cfe/trunk/lib/Analysis/PathDiagnostic.cpp

Modified: cfe/trunk/lib/Analysis/PathDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/PathDiagnostic.cpp?rev=67776&r1=67775&r2=67776&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/PathDiagnostic.cpp (original)
+++ cfe/trunk/lib/Analysis/PathDiagnostic.cpp Thu Mar 26 16:42:51 2009
@@ -140,6 +140,8 @@
 //===----------------------------------------------------------------------===//
 
 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:





More information about the cfe-commits mailing list