Add SOA Struct Layout (experimental) to demo.odin

This commit is contained in:
gingerBill committed 2019-11-03 12:52:13 +00:00
1 parent 013b3b9fb3
commit 57853fe1b1
2 files changed
+72

No files matched your search

+1
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 {