Small refactoring
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user