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 @@ -5822,7 +5822,9 @@ struct AAPointerInfo : public AbstractAttribute {
5822
5822
5823
5823
unsigned size () const { return Ranges.size (); }
5824
5824
5825
+ #ifndef __swift__
5825
5826
bool operator ==(const RangeList &OI) const { return Ranges == OI.Ranges ; }
5827
+ #endif
5826
5828
5827
5829
// / Merge the ranges in \p RHS into the current ranges.
5828
5830
// / - Merging a list of unknown ranges makes the current list unknown.
@@ -5956,11 +5958,13 @@ struct AAPointerInfo : public AbstractAttribute {
5956
5958
Access (const Access &Other) = default;
5957
5959
5958
5960
Access &operator =(const Access &Other) = default ;
5961
+ #ifndef __swift__
5959
5962
bool operator ==(const Access &R) const {
5960
5963
return LocalI == R.LocalI && RemoteI == R.RemoteI && Ranges == R.Ranges &&
5961
5964
Content == R.Content && Kind == R.Kind ;
5962
5965
}
5963
5966
bool operator !=(const Access &R) const { return !(*this == R); }
5967
+ #endif
5964
5968
5965
5969
Access &operator &=(const Access &R) {
5966
5970
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