Skip to content

Commit 4d30cd3

Browse files
committed
SIL: explicitly mark overloads as friends (NFC)
The class contains two inline operator overloads which are marked as friends. These overloads actually will be promoted to a global function. MSVC will not mark them as friends resulting in access to the members being lost. Explicitly mark the overloads as friends. This is needed by LLDB.
1 parent 311fe2a commit 4d30cd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/SIL/SILInstruction.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ class SILInstructionResultArray {
153153

154154
class iterator;
155155

156+
friend bool operator==(iterator, iterator);
157+
friend bool operator!=(iterator, iterator);
158+
156159
iterator begin() const;
157160
iterator end() const;
158161

0 commit comments

Comments
 (0)