Skip to content

Commit ac58db8

Browse files
authored
Merge pull request #71032 from tshortli/work-around-cycle-detected-while-resolving-warning
NFC: Work around 'cycle detected while resolving' warning
2 parents fd97268 + 801be96 commit ac58db8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/AST/Attr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,8 +3072,10 @@ class TypeAttributes {
30723072
return *this;
30733073
}
30743074

3075+
#ifndef __swift__
30753076
bool operator==(iterator x) const { return x.attr == attr; }
30763077
bool operator!=(iterator x) const { return x.attr != attr; }
3078+
#endif // __swift__
30773079

30783080
CustomAttr *operator*() const { return attr; }
30793081
CustomAttr &operator->() const { return *attr; }

0 commit comments

Comments
 (0)