ast_member's are now kept, since they are used like variables: multiple times

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 16:38:50 +02:00
parent ff1506983b
commit 304cf173cd

1
ast.c
View file

@ -388,6 +388,7 @@ ast_member* ast_member_new(lex_ctx ctx, ast_expression *owner, unsigned int fiel
}
ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_member_codegen);
self->expression.node.keep = true; /* keep */
if (owner->expression.vtype == TYPE_VECTOR) {
self->expression.vtype = TYPE_FLOAT;