Add SOA Struct Layout (experimental) to demo.odin

This commit is contained in:
gingerBill
2019-11-03 12:52:13 +00:00
parent 013b3b9fb3
commit 57853fe1b1
2 changed files with 72 additions and 0 deletions

View File

@@ -4810,6 +4810,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
Entity *new_field = alloc_entity_field(scope, token, array_type, false, cast(i32)i);
soa_struct->Struct.fields[i] = new_field;
add_entity(c->checker, scope, nullptr, new_field);
add_entity_use(c, nullptr, new_field);
}
} else {