File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,8 @@ namespace swift {
30
30
// / the ClangImporter needs to keep track of where imports were originally written.
31
31
// / Located makes it easy to do so while making the code more readable, compared to
32
32
// / using `std::pair`.
33
- template <typename T>
33
+ template <typename T>
34
34
struct Located {
35
-
36
35
// / The main item whose source location is being tracked.
37
36
T Item;
38
37
@@ -45,13 +44,13 @@ struct Located {
45
44
46
45
SWIFT_DEBUG_DUMP;
47
46
void dump (raw_ostream &os) const ;
48
-
49
- template <typename U>
50
- friend bool operator ==(const Located<U> &lhs, const Located<U> &rhs) {
51
- return lhs.Item == rhs.Item && lhs.Loc == rhs.Loc ;
52
- }
53
47
};
54
48
49
+ template <typename T>
50
+ bool operator ==(const Located<T> &lhs, const Located<T> &rhs) {
51
+ return lhs.Item == rhs.Item && lhs.Loc == rhs.Loc ;
52
+ }
53
+
55
54
} // end namespace swift
56
55
57
56
namespace llvm {
You can’t perform that action at this time.
0 commit comments