summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ast/ast.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 1e14369..cf082a7 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -54,10 +54,12 @@ typedef struct Type
struct Type **args; // For GENERIC args.
int arg_count;
int is_const;
- int array_size; // For fixed-size arrays [T; N].
- int is_varargs; // For function types (...).
- int is_restrict; // For restrict pointers.
- int has_drop; // For RAII: does this type implement Drop?
+ union {
+ int array_size; // For fixed-size arrays [T; N].
+ int is_varargs; // For function types (...).
+ int is_restrict; // For restrict pointers.
+ int has_drop; // For RAII: does this type implement Drop?
+ };
} Type;
// ** AST Node Types **