diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-26 21:42:00 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-26 21:42:00 +0000 |
commit | a54650079b2aa7c683c05e4d5deea25c76ce3630 (patch) | |
tree | 31f789ab1df3ab1dcb7ff71de0d8675582cb7ecb | |
parent | 97b40036d4d4d1bf4e7be71fc2bce009de4e8c0c (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.cpp | 4 |
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)); } |