ast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE for explicit returns

This commit is contained in:
Wolfgang Bumiller 2012-07-26 23:23:47 +02:00
parent b4225ea98a
commit 1f8ece7f20
2 changed files with 1 additions and 3 deletions

3
ast.c
View file

@ -200,8 +200,7 @@ void ast_unary_delete(ast_unary *self)
mem_d(self);
}
ast_return* ast_return_new(lex_ctx ctx, int op,
ast_expression *expr)
ast_return* ast_return_new(lex_ctx ctx, ast_expression *expr)
{
ast_instantiate(ast_return, ctx, ast_return_delete);
ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_return_codegen);

1
ast.h
View file

@ -180,7 +180,6 @@ struct ast_return_s
ast_expression *operand;
};
ast_return* ast_return_new(lex_ctx ctx,
int op,
ast_expression *expr);
void ast_return_delete(ast_return*);