Add comment.
llvm-svn: 67776
diff --git a/clang/lib/Analysis/PathDiagnostic.cpp b/clang/lib/Analysis/PathDiagnostic.cpp
index d719aa8..1441088 100644
--- a/clang/lib/Analysis/PathDiagnostic.cpp
+++ b/clang/lib/Analysis/PathDiagnostic.cpp
@@ -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: