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 {
176176 explicit BuiltinTypeInfo (TypeRefBuilder &builder,
177177 RemoteRef<BuiltinTypeDescriptor> descriptor);
178178
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+
179189 const std::string &getMangledTypeName () const {
180190 return Name;
181191 }
Original file line number Diff line number Diff line change @@ -1683,12 +1683,7 @@ const TypeInfo *TypeConverter::getEmptyTypeInfo() {
16831683 if (EmptyTI != nullptr )
16841684 return EmptyTI;
16851685
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>();
16921687 return EmptyTI;
16931688}
16941689
You can’t perform that action at this time.
0 commit comments