summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorWormHeamer2025-10-28 02:10:20 -0400
committerWormHeamer2025-10-28 02:10:20 -0400
commitf360f57c45073b5e9ea74da442174b53020d15ec (patch)
tree9d49d355288a2c16e7bf86692049c67bd3d30e15 /ir.h
parent70a96b84946ad994051b3a378789507e2283a6d5 (diff)
parent89bc739611419ba52a6e6e692e9fd965ffa7d837 (diff)
Merge branch 'dev'
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir.h b/ir.h
index 8a2abb5..ae91b6c 100644
--- a/ir.h
+++ b/ir.h
@@ -110,21 +110,21 @@ typedef struct {
} NodeList;
typedef struct Node {
- int id, refs;
union {
struct Node *prev_free;
struct {
- int walked;
- NodeType op;
- LexSpan src_pos;
NodeList in; /* note: index 0 used for control flow */
NodeList out;
+ int walked;
+ LexSpan src_pos;
union {
Type type;
Value val;
};
};
};
+ int id;
+ NodeType op;
} Node;
/* convenience macros (lisp-inspired lol) */