aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-26 21:42:00 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-26 21:42:00 +0000
commita54650079b2aa7c683c05e4d5deea25c76ce3630 (patch)
tree31f789ab1df3ab1dcb7ff71de0d8675582cb7ecb
parent97b40036d4d4d1bf4e7be71fc2bce009de4e8c0c (diff)
Restructure code to silence bogus GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67775 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/PathDiagnostic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/PathDiagnostic.cpp b/lib/Analysis/PathDiagnostic.cpp
index 940a9e2d98..d719aa88b5 100644
--- a/lib/Analysis/PathDiagnostic.cpp
+++ b/lib/Analysis/PathDiagnostic.cpp
@@ -143,8 +143,10 @@ FullSourceLoc PathDiagnosticLocation::asLocation() const {
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));
}