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

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


Author: kremenek
Date: Thu Mar 26 16:42:00 2009
New Revision: 67775

URL: http://llvm.org/viewvc/llvm-project?rev=67775&view=rev
Log:
Restructure code to silence bogus GCC warning.

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=67775&r1=67774&r2=67775&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/PathDiagnostic.cpp (original)
+++ cfe/trunk/lib/Analysis/PathDiagnostic.cpp Thu Mar 26 16:42:00 2009
@@ -143,8 +143,10 @@
   switch (K) {
     case SingleLoc:
     case Range:
-      return FullSourceLoc(R.getBegin(), const_cast<SourceManager&>(SM));
+      break;
     case Statement:
       return FullSourceLoc(S->getLocStart(), const_cast<SourceManager&>(SM));
   }
+  
+  return FullSourceLoc(R.getBegin(), const_cast<SourceManager&>(SM));
 }





More information about the cfe-commits mailing list