Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ public int CompareTo(FieldLayoutInterval other)

// Represent field layout bits as as a series of intervals to prevent pathological bad behavior
// involving excessively large explicit layout structures.
private readonly List<FieldLayoutInterval> _fieldLayout = new List<FieldLayoutInterval>();
private readonly List<FieldLayoutInterval> _fieldLayout;

private readonly MetadataType _typeBeingValidated;

private ExplicitLayoutValidator(MetadataType type, int typeSizeInBytes)
{
_typeBeingValidated = type;
_pointerSize = type.Context.Target.PointerSize;
_fieldLayout = new List<FieldLayoutInterval>();
}

public static void Validate(MetadataType type, ComputedInstanceFieldLayout layout)
Expand Down