Skip to content

Commit 49dbf15

Browse files
authored
Merge pull request #70371 from allevato/c++20-fixes
[C++20] Make `operator==` const.
2 parents f25e92f + c7e52ca commit 49dbf15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
128128
uint16_t Column = 0;
129129
llvm::DIFile *File = nullptr;
130130
StringRef getFilename() const { return File ? File->getFilename() : ""; }
131-
bool operator==(const FileAndLocation &other) {
131+
bool operator==(const FileAndLocation &other) const {
132132
return Line == other.Line && Column == other.Column && File == other.File;
133133
}
134134
};

0 commit comments

Comments
 (0)