diff options
author | Ted Kremenek <kremenek@apple.com> | 2014-03-06 05:37:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2014-03-06 05:37:28 +0000 |
commit | d8c64f573d043c217992cea8b9df3d4c9e64b332 (patch) | |
tree | 23a55a9acaac6bf16ba0d33cdd35782f3c30b78e /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | daa8cd10d9624f41882136e6c747af8d0d179de3 (diff) | |
download | bcm5719-llvm-d8c64f573d043c217992cea8b9df3d4c9e64b332.tar.gz bcm5719-llvm-d8c64f573d043c217992cea8b9df3d4c9e64b332.zip |
Remove dead return in BugReporter (found via -Wunreachable-code).
llvm-svn: 203077
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index 5f88c5e2b46..c07596f145b 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2742,12 +2742,10 @@ PathDiagnosticLocation BugReport::getLocation(const SourceManager &SM) const { assert(!Location.isValid() && "Either Location or ErrorNode should be specified but not both."); return PathDiagnosticLocation::createEndOfPath(ErrorNode, SM); - } else { - assert(Location.isValid()); - return Location; } - return PathDiagnosticLocation(); + assert(Location.isValid()); + return Location; } //===----------------------------------------------------------------------===// |