[IR] Drop unnecessary const from return types (NFC)

Identified with const-return-type.
This commit is contained in:
Kazu Hirata 2021-02-04 21:18:01 -08:00
parent 50e4e385a4
commit d29562b29c
2 changed files with 2 additions and 2 deletions

View File

@ -381,7 +381,7 @@ public:
/// Return a string with the location information for this diagnostic
/// in the format "file:line:col". If location information is not available,
/// it returns "<unknown>:0:0".
const std::string getLocationStr() const;
std::string getLocationStr() const;
/// Return location information for this diagnostic in three parts:
/// the relative source file path, line number and column.

View File

@ -152,7 +152,7 @@ void DiagnosticInfoWithLocationBase::getLocation(StringRef &RelativePath,
Column = Loc.getColumn();
}
const std::string DiagnosticInfoWithLocationBase::getLocationStr() const {
std::string DiagnosticInfoWithLocationBase::getLocationStr() const {
StringRef Filename("<unknown>");
unsigned Line = 0;
unsigned Column = 0;