From: Ted Kremenek Date: Thu, 26 Mar 2009 21:42:00 +0000 (+0000) Subject: Restructure code to silence bogus GCC warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a54650079b2aa7c683c05e4d5deea25c76ce3630;p=clang 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 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(SM)); + break; case Statement: return FullSourceLoc(S->getLocStart(), const_cast(SM)); } + + return FullSourceLoc(R.getBegin(), const_cast(SM)); }