We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6605310 commit b4569deCopy full SHA for b4569de
llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -116,10 +116,15 @@ class DbgValueLocation {
116
return DbgValueLocation(NewLocNo, WasIndirect);
117
}
118
119
- bool operator==(const DbgValueLocation &O) const {
120
- return LocNo == O.LocNo && WasIndirect == O.WasIndirect;
+ friend inline bool operator==(const DbgValueLocation &LHS,
+ const DbgValueLocation &RHS) {
121
+ return LHS.LocNo == RHS.LocNo && LHS.WasIndirect == RHS.WasIndirect;
122
+ }
123
+
124
+ friend inline bool operator!=(const DbgValueLocation &LHS,
125
126
+ return !(LHS == RHS);
127
- bool operator!=(const DbgValueLocation &O) const { return !(*this == O); }
128
129
private:
130
unsigned LocNo : 31;
0 commit comments