mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
DenseMap: add workaround for C++2a builds
Hide operator !=
This commit is contained in:
@@ -1219,6 +1219,8 @@ public:
|
||||
"comparing incomparable iterators!");
|
||||
return Ptr == RHS.Ptr;
|
||||
}
|
||||
#if __cpp_impl_three_way_comparison >= 201711
|
||||
#else
|
||||
bool operator!=(const ConstIterator &RHS) const {
|
||||
assert((!Ptr || isHandleInSync()) && "handle not in sync!");
|
||||
assert((!RHS.Ptr || RHS.isHandleInSync()) && "handle not in sync!");
|
||||
@@ -1226,6 +1228,7 @@ public:
|
||||
"comparing incomparable iterators!");
|
||||
return Ptr != RHS.Ptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
inline DenseMapIterator& operator++() { // Preincrement
|
||||
assert(isHandleInSync() && "invalid iterator access!");
|
||||
|
||||
Reference in New Issue
Block a user