From a54650079b2aa7c683c05e4d5deea25c76ce3630 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 26 Mar 2009 21:42:00 +0000 Subject: [PATCH] Restructure code to silence bogus GCC warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67775 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/PathDiagnostic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } -- 2.50.1