Restructure code to silence bogus GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67775 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/PathDiagnostic.cpp b/lib/Analysis/PathDiagnostic.cpp
index 940a9e2..d719aa8 100644
--- a/lib/Analysis/PathDiagnostic.cpp
+++ b/lib/Analysis/PathDiagnostic.cpp
@@ -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));
}