@@ -153,6 +153,9 @@ class SILInstructionResultArray {
153
153
154
154
class iterator ;
155
155
156
+ friend bool operator ==(iterator, iterator);
157
+ friend bool operator !=(iterator, iterator);
158
+
156
159
iterator begin () const ;
157
160
iterator end () const ;
158
161
@@ -997,17 +1000,16 @@ class NonValueInstruction : public SILInstruction {
997
1000
}
998
1001
999
1002
// / A helper class for defining some basic boilerplate.
1000
- template <SILInstructionKind Kind, typename Base ,
1003
+ template <SILInstructionKind Kind, typename InstBase ,
1001
1004
bool IsSingleResult =
1002
- std::is_base_of<SingleValueInstruction, Base >::value>
1005
+ std::is_base_of<SingleValueInstruction, InstBase >::value>
1003
1006
class InstructionBase ;
1004
1007
1005
- template <SILInstructionKind Kind, typename Base >
1006
- class InstructionBase <Kind, Base , /* HasResult*/ true > : public Base {
1008
+ template <SILInstructionKind Kind, typename InstBase >
1009
+ class InstructionBase <Kind, InstBase , /* HasResult*/ true > : public InstBase {
1007
1010
protected:
1008
1011
template <typename ... As>
1009
- InstructionBase (As &&...args)
1010
- : Base(Kind, std::forward<As>(args)...) {}
1012
+ InstructionBase (As &&... args) : InstBase(Kind, std::forward<As>(args)...) {}
1011
1013
1012
1014
public:
1013
1015
// / Override to statically return the kind.
@@ -1023,12 +1025,11 @@ class InstructionBase<Kind, Base, /*HasResult*/ true> : public Base {
1023
1025
}
1024
1026
};
1025
1027
1026
- template <SILInstructionKind Kind, typename Base >
1027
- class InstructionBase <Kind, Base , /* HasResult*/ false > : public Base {
1028
+ template <SILInstructionKind Kind, typename InstBase >
1029
+ class InstructionBase <Kind, InstBase , /* HasResult*/ false > : public InstBase {
1028
1030
protected:
1029
1031
template <typename ... As>
1030
- InstructionBase (As &&...args)
1031
- : Base(Kind, std::forward<As>(args)...) {}
1032
+ InstructionBase (As &&... args) : InstBase(Kind, std::forward<As>(args)...) {}
1032
1033
1033
1034
public:
1034
1035
static constexpr SILInstructionKind getKind () {
0 commit comments