diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-22 09:06:44 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-22 09:06:44 +0100 |
| commit | 4654b41c3e6a01118e28e6297b2de97bd0a8cd42 (patch) | |
| tree | 570e91691e90a913ca9749b4f461bce48de1a34f /src/tilde_const.cpp | |
| parent | b09ea17f0ecbfc30d9f41bd450fd2010820db28c (diff) | |
Implement call expressions
Diffstat (limited to 'src/tilde_const.cpp')
| -rw-r--r-- | src/tilde_const.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tilde_const.cpp b/src/tilde_const.cpp index 6e3979637..e066c72a3 100644 --- a/src/tilde_const.cpp +++ b/src/tilde_const.cpp @@ -126,7 +126,7 @@ gb_internal TB_Global *cg_global_const_string(cgModule *m, String const &str, Ty if (global == nullptr) { global = tb_global_create(m->mod, -1, name, cg_debug_type(m, type), TB_LINKAGE_PRIVATE); - tb_global_set_storage(m->mod, tb_module_get_rdata(m->mod), str_global, type_size_of(type), type_align_of(type), 2); + tb_global_set_storage(m->mod, tb_module_get_rdata(m->mod), global, type_size_of(type), type_align_of(type), 2); } tb_global_add_symbol_reloc(m->mod, global, offset+0, cast(TB_Symbol *)str_global); |