From 7371673ab581f2ab4db313dadf21c661ce0b7d87 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Thu, 5 Jun 2025 00:08:00 +0200 Subject: Bootstrap: Codegen: Continue implementation --- src/codegen.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.zig') diff --git a/src/codegen.zig b/src/codegen.zig index 3fb5573..118e274 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -853,7 +853,7 @@ pub const CodeGen = struct { if (ptr.node_type.TYPE == .STRUCT_TYPE) { typ = ptr.node_type; } else if (ptr.node_type.TYPE == .POINTER_TYPE) { - typ = self.environment.get_variable(ptr.node_type.TYPE.POINTER_TYPE.type.TYPE.SIMPLE_TYPE.name).?.node_type; + typ = self.environment.get_variable(ptr.node_type.TYPE.POINTER_TYPE.type.TYPE.SIMPLE_TYPE.name).?.node_type; //TODO: we shouldnt be able to get fields of pointers, we have to dref first. } else if (ptr.node_type.TYPE == .SIMPLE_TYPE) { typ = self.environment.get_variable(ptr.node_type.TYPE.SIMPLE_TYPE.name).?.node_type; } else { -- cgit 1.4.1