summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
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) */