Remove dead return in BugReporter (found via -Wunreachable-code).

llvm-svn: 203077
This commit is contained in:
Ted Kremenek 2014-03-06 05:37:28 +00:00
parent daa8cd10d9
commit d8c64f573d
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}
//===----------------------------------------------------------------------===//