aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-04-19 18:52:09 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-04-19 18:52:09 -0700
commit36c6acfc76eeeed1498b5cc9ecb3137214e69bbf (patch)
tree40e2ffa30130a2ed1dd8f5674843237b108176f6 /src/all_types.hpp
parent7a7f83033c3fee3e92046b76dd33b9f8ded4f0fd (diff)
downloadzig-36c6acfc76eeeed1498b5cc9ecb3137214e69bbf.tar.gz
zig-36c6acfc76eeeed1498b5cc9ecb3137214e69bbf.zip
enum init uses container init syntax instead of fn call
See #5
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index ee71a0ec28..46c0ba0882 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -392,7 +392,6 @@ struct AstNodeFnCallExpr {
Expr resolved_expr;
FnTableEntry *fn_entry;
CastOp cast_op;
- TypeTableEntry *enum_type;
// if cast_op is CastOpArrayToString, this will be a pointer to
// the string struct on the stack
LLVMValueRef tmp_ptr;
@@ -429,6 +428,7 @@ struct AstNodeFieldAccessExpr {
bool is_fn_call;
TypeTableEntry *bare_struct_type;
bool is_member_fn;
+ AstNode *container_init_expr_node;
};
struct AstNodeDirective {
@@ -665,6 +665,7 @@ struct AstNodeContainerInitExpr {
// populated by semantic analyzer
StructValExprCodeGen resolved_struct_val_expr;
Expr resolved_expr;
+ TypeTableEntry *enum_type;
};
struct AstNodeNullLiteral {