File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class TypeAttributes {
70
70
struct Convention {
71
71
StringRef Name = {};
72
72
DeclNameRef WitnessMethodProtocol = {};
73
- Located<StringRef> ClangType = {} ;
73
+ Located<StringRef> ClangType = Located<StringRef>(StringRef(), {}) ;
74
74
// / Convenience factory function to create a Swift convention.
75
75
// /
76
76
// / Don't use this function if you are creating a C convention as you
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ struct Located {
39
39
// / The original source location from which the item was parsed.
40
40
SourceLoc Loc;
41
41
42
- Located (): Item(), Loc() {}
42
+ Located () : Item(), Loc() {}
43
43
44
- Located (T Item, SourceLoc loc): Item(Item), Loc(loc) {}
44
+ Located (T Item, SourceLoc loc) : Item(Item), Loc(loc) {}
45
45
46
46
SWIFT_DEBUG_DUMP;
47
47
void dump (raw_ostream &os) const ;
48
48
49
49
template <typename U>
50
- friend bool operator ==(const Located<U>& lhs, const Located<U>& rhs) {
50
+ friend bool operator ==(const Located<U> & lhs, const Located<U> & rhs) {
51
51
return lhs.Item == rhs.Item && lhs.Loc == rhs.Loc ;
52
52
}
53
53
};
You can’t perform that action at this time.
0 commit comments