File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
llvm/include/llvm/Transforms/IPO Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -149,9 +149,11 @@ class DeclContext::ddiag_iterator {
149
149
return tmp;
150
150
}
151
151
152
+ #ifndef __swift__
152
153
bool operator ==(ddiag_iterator Other) const {
153
154
return Ptr == Other.Ptr ;
154
155
}
156
+ #endif
155
157
156
158
bool operator !=(ddiag_iterator Other) const {
157
159
return Ptr != Other.Ptr ;
Original file line number Diff line number Diff line change @@ -5878,7 +5878,9 @@ struct AAPointerInfo : public AbstractAttribute {
5878
5878
5879
5879
unsigned size () const { return Ranges.size (); }
5880
5880
5881
+ #ifndef __swift__
5881
5882
bool operator ==(const RangeList &OI) const { return Ranges == OI.Ranges ; }
5883
+ #endif
5882
5884
5883
5885
// / Merge the ranges in \p RHS into the current ranges.
5884
5886
// / - Merging a list of unknown ranges makes the current list unknown.
@@ -6012,11 +6014,13 @@ struct AAPointerInfo : public AbstractAttribute {
6012
6014
Access (const Access &Other) = default;
6013
6015
6014
6016
Access &operator =(const Access &Other) = default ;
6017
+ #ifndef __swift__
6015
6018
bool operator ==(const Access &R) const {
6016
6019
return LocalI == R.LocalI && RemoteI == R.RemoteI && Ranges == R.Ranges &&
6017
6020
Content == R.Content && Kind == R.Kind ;
6018
6021
}
6019
6022
bool operator !=(const Access &R) const { return !(*this == R); }
6023
+ #endif
6020
6024
6021
6025
Access &operator &=(const Access &R) {
6022
6026
assert (RemoteI == R.RemoteI && " Expected same instruction!" );
Original file line number Diff line number Diff line change @@ -162,13 +162,15 @@ class SampleContextTracker {
162
162
return *this ;
163
163
}
164
164
165
+ #ifndef __swift__
165
166
bool operator ==(const Iterator &Other) const {
166
167
if (NodeQueue.empty () && Other.NodeQueue .empty ())
167
168
return true ;
168
169
if (NodeQueue.empty () || Other.NodeQueue .empty ())
169
170
return false ;
170
171
return NodeQueue.front () == Other.NodeQueue .front ();
171
172
}
173
+ #endif
172
174
173
175
ContextTrieNode *operator *() const {
174
176
assert (!NodeQueue.empty () && " Invalid access to end iterator" );
You can’t perform that action at this time.
0 commit comments