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 {
149149 return tmp;
150150 }
151151
152+ #ifndef __swift__
152153 bool operator ==(ddiag_iterator Other) const {
153154 return Ptr == Other.Ptr ;
154155 }
156+ #endif
155157
156158 bool operator !=(ddiag_iterator Other) const {
157159 return Ptr != Other.Ptr ;
Original file line number Diff line number Diff line change @@ -5822,7 +5822,9 @@ struct AAPointerInfo : public AbstractAttribute {
58225822
58235823 unsigned size () const { return Ranges.size (); }
58245824
5825+ #ifndef __swift__
58255826 bool operator ==(const RangeList &OI) const { return Ranges == OI.Ranges ; }
5827+ #endif
58265828
58275829 // / Merge the ranges in \p RHS into the current ranges.
58285830 // / - Merging a list of unknown ranges makes the current list unknown.
@@ -5956,11 +5958,13 @@ struct AAPointerInfo : public AbstractAttribute {
59565958 Access (const Access &Other) = default;
59575959
59585960 Access &operator =(const Access &Other) = default ;
5961+ #ifndef __swift__
59595962 bool operator ==(const Access &R) const {
59605963 return LocalI == R.LocalI && RemoteI == R.RemoteI && Ranges == R.Ranges &&
59615964 Content == R.Content && Kind == R.Kind ;
59625965 }
59635966 bool operator !=(const Access &R) const { return !(*this == R); }
5967+ #endif
59645968
59655969 Access &operator &=(const Access &R) {
59665970 assert (RemoteI == R.RemoteI && " Expected same instruction!" );
Original file line number Diff line number Diff line change @@ -162,13 +162,15 @@ class SampleContextTracker {
162162 return *this ;
163163 }
164164
165+ #ifndef __swift__
165166 bool operator ==(const Iterator &Other) const {
166167 if (NodeQueue.empty () && Other.NodeQueue .empty ())
167168 return true ;
168169 if (NodeQueue.empty () || Other.NodeQueue .empty ())
169170 return false ;
170171 return NodeQueue.front () == Other.NodeQueue .front ();
171172 }
173+ #endif
172174
173175 ContextTrieNode *operator *() const {
174176 assert (!NodeQueue.empty () && " Invalid access to end iterator" );
You can’t perform that action at this time.
0 commit comments