about summary refs log tree commit diff
path: root/boot/visit
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-30 23:04:48 +0200
committerMel <mel@rnrd.eu>2026-05-30 23:04:48 +0200
commitdd9f8fccf405af709c1d655dbec4be1561e990c0 (patch)
tree5f05eff13d01df0e1bd365e0c31a9b4b69284bdc /boot/visit
parent4ec376b67d605910cb7757dc2e15a28a942f59ca (diff)
downloadcatskill-dd9f8fccf405af709c1d655dbec4be1561e990c0.tar.zst
catskill-dd9f8fccf405af709c1d655dbec4be1561e990c0.zip
Define name resolution behavior, clean-up langauge object resolution
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/visit')
-rw-r--r--boot/visit/ir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/visit/ir.c b/boot/visit/ir.c
index ca32a1e..8a0297b 100644
--- a/boot/visit/ir.c
+++ b/boot/visit/ir.c
@@ -467,7 +467,7 @@ struct Type*
 printer_type_at(struct Printer* p, Type_Id id)
 {
     if (id >= array_length(&p->unit->types.entries)) return nil;
-    return *array_at(struct Type*, &p->unit->types.entries, id);
+    return unit_get_type(p->unit, id);
 }
 
 void