|
@@ -2742,12 +2742,10 @@ PathDiagnosticLocation BugReport::getLocation(const SourceManager &SM) const {
|
|
assert(!Location.isValid() &&
|
|
assert(!Location.isValid() &&
|
|
"Either Location or ErrorNode should be specified but not both.");
|
|
"Either Location or ErrorNode should be specified but not both.");
|
|
return PathDiagnosticLocation::createEndOfPath(ErrorNode, SM);
|
|
return PathDiagnosticLocation::createEndOfPath(ErrorNode, SM);
|
|
- } else {
|
|
|
|
- assert(Location.isValid());
|
|
|
|
- return Location;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- return PathDiagnosticLocation();
|
|
|
|
|
|
+ assert(Location.isValid());
|
|
|
|
+ return Location;
|
|
}
|
|
}
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
//===----------------------------------------------------------------------===//
|