Skip to content

Commit

Permalink
Merge branch 'dotnet:main' into with-packing-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DaZombieKiller authored Nov 7, 2022
2 parents e162c16 + 69391f1 commit abc629a
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2822,11 +2822,6 @@ void VisitConstantOrIncompleteArrayFieldDecl(RecordDecl recordDecl, FieldDecl co
AddDiagnostic(DiagnosticLevel.Info, $"{escapedName} (constant array field) has a size of 0", constantOrIncompleteArray);
}

if (!TryGetRemappedValue(recordDecl, _config.WithPackings, out var pack))
{
pack = alignment < maxAlignm ? alignment.ToString(CultureInfo.InvariantCulture) : null;
}

var desc = new StructDesc {
AccessSpecifier = accessSpecifier,
EscapedName = escapedName,
Expand All @@ -2836,7 +2831,7 @@ void VisitConstantOrIncompleteArrayFieldDecl(RecordDecl recordDecl, FieldDecl co
Alignment64 = alignment64,
Size32 = size32,
Size64 = size64,
Pack = pack,
Pack = alignment < maxAlignm ? alignment.ToString(CultureInfo.InvariantCulture) : null,
MaxFieldAlignment = maxAlignm,
Kind = LayoutKind.Sequential
},
Expand Down

0 comments on commit abc629a

Please sign in to comment.