about summary refs log tree commit diff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-06-05 00:08:00 +0200
committerBaitinq <[email protected]>2025-06-05 00:08:00 +0200
commit7371673ab581f2ab4db313dadf21c661ce0b7d87 (patch)
treecaf5fa7a73be8acc8ed4df0a4e45920b976ed72c /src/codegen.zig
parentstd: Add assert impl (diff)
downloadpry-lang-7371673ab581f2ab4db313dadf21c661ce0b7d87.tar.gz
pry-lang-7371673ab581f2ab4db313dadf21c661ce0b7d87.tar.bz2
pry-lang-7371673ab581f2ab4db313dadf21c661ce0b7d87.zip
Bootstrap: Codegen: Continue implementation
Diffstat (limited to 'src/codegen.zig')
-rw-r--r--src/codegen.zig2
1 files changed, 1 insertions, 1 deletions
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 {