projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1502ef
)
tiny bugfix, but crucial change
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 10 Jan 2023 15:01:55 +0000
(09:01 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 10 Jan 2023 15:01:55 +0000
(09:01 -0600)
compiler/src/wasm_emit.c
patch
|
blob
|
history
diff --git
a/compiler/src/wasm_emit.c
b/compiler/src/wasm_emit.c
index e4aeab4d985351759522507ad42f02f1d5ad63f6..e4cf230e4bd3bfac4bc3a502816c8273c7c5f421 100644
(file)
--- a/
compiler/src/wasm_emit.c
+++ b/
compiler/src/wasm_emit.c
@@
-3469,9
+3469,8
@@
EMIT_FUNC(expression, AstTyped* expr) {
emit_load_instruction(mod, &code, field->type, offset);
} else if (onyx_type_is_stored_in_memory(field->expr->type)) {
- u64 offset = 0;
emit_expression(mod, &code, field->expr);
- emit_load_instruction(mod, &code, field->type, offset);
+ emit_load_instruction(mod, &code, field->type,
field->
offset);
} else {
emit_expression(mod, &code, field->expr);