forked from OSchip/llvm-project
Remove dead return in BugReporter (found via -Wunreachable-code).
llvm-svn: 203077
This commit is contained in:
parent
daa8cd10d9
commit
d8c64f573d
|
@ -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;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue