aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-03 15:06:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-03 15:06:59 -0400
commit16c2e3f590d5136e90a4d195a877502faa544715 (patch)
treecc07e362b4f64e85e510b1fd281d038371a6feba /compile.c
parent52544344f10f0383d54795099c6b3a4f627c579a (diff)
Incrementally moving towards passing array entry sizes explicitly
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 72ecc352..a2c908ff 100644
--- a/compile.c
+++ b/compile.c
@@ -175,7 +175,7 @@ static CORD compile_lvalue(env_t *env, ast_t *ast)
CORD target_code = compile_to_pointer_depth(env, index->indexed, 1, false);
type_t *item_type = Match(container_t, ArrayType)->item_type;
return CORD_all("Array_lvalue(", compile_type(item_type), ", ", target_code, ", ",
- compile(env, index->index), ", ", compile_type_info(env, container_t),
+ compile(env, index->index), ", ", CORD_asprintf("%ld", padded_type_size(item_type)),
", ", Text$quoted(ast->file->filename, false), ", ", heap_strf("%ld", ast->start - ast->file->text),
", ", heap_strf("%ld", ast->end - ast->file->text), ")");
} else if (container_t->tag == TableType) {