Small refactoring

This commit is contained in:
nub31
2025-08-18 13:47:53 +02:00
parent c07dba2fa7
commit ce78fb4d30
2 changed files with 23 additions and 39 deletions

View File

@@ -1247,15 +1247,10 @@ public class QBEGenerator
return (offset + alignment - 1) & ~(alignment - 1);
}
private int OffsetOf(StructNode structDef, string member)
private static int OffsetOf(StructNode structDef, string member)
{
var offset = 0;
// if (structDef.InterfaceImplementations.Any())
// {
// offset = 8;
// }
foreach (var field in structDef.Fields)
{
if (field.Name == member)