Skip to content

Commit

Permalink
Enable IL2C_RUNTIME_TYPE_BEGIN writer, to handle compilation of Syste…
Browse files Browse the repository at this point in the history
…m.Object, where there is no BaseType
  • Loading branch information
cyborgyn committed Oct 13, 2021
1 parent df35a87 commit 1a9cfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IL2C.Core/Writers/TypeHelperWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public static void InternalConvertTypeHelper(
declaredType.IsReferenceType ? "IL2C_TYPE_REFERENCE" :
"IL2C_TYPE_VALUE",
declaredType.CLanguageStaticSizeOfExpression,
declaredType.BaseType.MangledUniqueName,
declaredType.BaseType == null ? "NULL" : declaredType.BaseType.MangledUniqueName,
declaredType.IsDelegate ? "System_Delegate_MarkHandler__" : markTargetFields.Length.ToString(),
interfaceTypes.Length);
}
Expand Down

0 comments on commit 1a9cfe8

Please sign in to comment.