Skip to content

Commit a70fc75

Browse files
authored
Merge pull request #4094 from bnbarham/add-const-to-error
[stable/20211026][Support] Add const to `FileError::getFileName`
2 parents f0d1da4 + 7ccdffc commit a70fc75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/Error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ class FileError final : public ErrorInfo<FileError> {
12831283
return OS.str();
12841284
}
12851285

1286-
StringRef getFileName() { return FileName; }
1286+
StringRef getFileName() const { return FileName; }
12871287

12881288
Error takeError() { return Error(std::move(Err)); }
12891289

0 commit comments

Comments
 (0)