Skip to content

Commit 3e7df27

Browse files
authored
Revert "Fix ambiguous reversed operator error in sanitizer_mac.h (#135068)"
This reverts commit 433a63e.
1 parent 0283bb3 commit 3e7df27

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_mac.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,16 @@ struct VersionBase {
3737

3838
VersionBase(u16 major, u16 minor) : major(major), minor(minor) {}
3939

40+
bool operator==(const VersionType &other) const {
41+
return major == other.major && minor == other.minor;
42+
}
4043
bool operator>=(const VersionType &other) const {
4144
return major > other.major ||
4245
(major == other.major && minor >= other.minor);
4346
}
4447
bool operator<(const VersionType &other) const { return !(*this >= other); }
4548
};
4649

47-
template <typename VersionType>
48-
bool operator==(const VersionType &self, const VersionType &other) {
49-
return self.major == other.major && self.minor == other.minor;
50-
}
51-
5250
struct MacosVersion : VersionBase<MacosVersion> {
5351
MacosVersion(u16 major, u16 minor) : VersionBase(major, minor) {}
5452
};

0 commit comments

Comments
 (0)