diff options
| author | gingerBill <bill@gingerbill.org> | 2023-12-13 12:38:01 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-12-13 12:38:01 +0000 |
| commit | bc99bacb2122f073133ddf6eeb31b4db56a99fa7 (patch) | |
| tree | 6743c1ff2bd85ed8529569238d366b21840a4882 /src/tilde.cpp | |
| parent | 173527d6319752d1bc56db41ed33ab7904c9e13b (diff) | |
Update Tilde
Diffstat (limited to 'src/tilde.cpp')
| -rw-r--r-- | src/tilde.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tilde.cpp b/src/tilde.cpp index b27c42a12..8e3e25836 100644 --- a/src/tilde.cpp +++ b/src/tilde.cpp @@ -215,7 +215,7 @@ gb_internal void cg_set_debug_pos_from_node(cgProcedure *p, Ast *node) { TokenPos pos = ast_token(node).pos; TB_SourceFile **file = map_get(&p->module->file_id_map, cast(uintptr)pos.file_id); if (file) { - tb_inst_set_location(p->func, *file, pos.line, pos.column); + tb_inst_location(p->func, *file, pos.line, pos.column); } } } @@ -373,7 +373,7 @@ gb_internal bool cg_global_variables_create(cgModule *m, Array<cgGlobalVariable> TB_Global *global = tb_global_create(m->mod, name.len, cast(char const *)name.text, debug_type, linkage); cgValue g = cg_value(global, alloc_type_pointer(e->type)); - TB_ModuleSection *section = tb_module_get_data(m->mod); + TB_ModuleSectionHandle section = tb_module_get_data(m->mod); if (e->Variable.thread_local_model != "") { section = tb_module_get_tls(m->mod); |