mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +00:00
Add support for soa slice reference iteration
This commit is contained in:
@@ -1780,6 +1780,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
|
|||||||
case Type_Struct:
|
case Type_Struct:
|
||||||
if (t->Struct.soa_kind != StructSoa_None) {
|
if (t->Struct.soa_kind != StructSoa_None) {
|
||||||
is_soa = true;
|
is_soa = true;
|
||||||
|
if (is_ptr) use_by_reference_for_value = true;
|
||||||
array_add(&vals, t->Struct.soa_elem);
|
array_add(&vals, t->Struct.soa_elem);
|
||||||
array_add(&vals, t_int);
|
array_add(&vals, t_int);
|
||||||
if (!build_context.use_llvm_api) {
|
if (!build_context.use_llvm_api) {
|
||||||
|
|||||||
Reference in New Issue
Block a user