File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
include/swift/RemoteInspection
stdlib/public/RemoteInspection Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,16 @@ class BuiltinTypeInfo : public TypeInfo {
176
176
explicit BuiltinTypeInfo (TypeRefBuilder &builder,
177
177
RemoteRef<BuiltinTypeDescriptor> descriptor);
178
178
179
+ // / Construct an empty builtin type info.
180
+ BuiltinTypeInfo ()
181
+ : TypeInfo(TypeInfoKind::Builtin,
182
+ /* Size=*/ 0 ,
183
+ /* Alignment=*/ 1 ,
184
+ /* Stride=*/ 1 ,
185
+ /* ExtraInhabitants=*/ 0 ,
186
+ /* BitwiseTakable=*/ true ),
187
+ Name (" " ) {}
188
+
179
189
const std::string &getMangledTypeName () const {
180
190
return Name;
181
191
}
Original file line number Diff line number Diff line change @@ -1683,12 +1683,7 @@ const TypeInfo *TypeConverter::getEmptyTypeInfo() {
1683
1683
if (EmptyTI != nullptr )
1684
1684
return EmptyTI;
1685
1685
1686
- EmptyTI = makeTypeInfo<TypeInfo>(TypeInfoKind::Builtin,
1687
- /* Size=*/ 0 ,
1688
- /* Alignment=*/ 1 ,
1689
- /* Stride=*/ 1 ,
1690
- /* ExtraInhabitants=*/ 0 ,
1691
- /* BitwiseTakable=*/ true );
1686
+ EmptyTI = makeTypeInfo<BuiltinTypeInfo>();
1692
1687
return EmptyTI;
1693
1688
}
1694
1689
You can’t perform that action at this time.
0 commit comments