aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-11-03 12:52:13 +0000
committergingerBill <bill@gingerbill.org>2019-11-03 12:52:13 +0000
commit57853fe1b118970e1fc7149a7f030f4152e7157d (patch)
tree0b2aa427e7dc551679c382d64017f326115ed515 /src
parent013b3b9fb3ed07513cf0bd9e381f805df0554b06 (diff)
Add SOA Struct Layout (experimental) to demo.odin
Diffstat (limited to 'src')
-rw-r--r--src/check_expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 9db4938ee..48b430248 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -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 {