From 1f8ece7f206d2ffd38d8427be00013fcd8777249 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 26 Jul 2012 23:23:47 +0200 Subject: [PATCH] ast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE for explicit returns --- ast.c | 3 +-- ast.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ast.c b/ast.c index 56db3f9..f6e96c4 100644 --- a/ast.c +++ b/ast.c @@ -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); diff --git a/ast.h b/ast.h index 86bb183..4f901e8 100644 --- a/ast.h +++ b/ast.h @@ -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*); -- 2.39.2