From d76e6b103d8502191679a94f1b1b0de646e81d0d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 15:01:19 +0100 Subject: [PATCH] ast_return needs the correct context... --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 6f2ddd8..8d8e5a4 100644 --- a/parser.c +++ b/parser.c @@ -2156,7 +2156,7 @@ static bool parse_return(parser_t *parser, ast_block *block, ast_expression **ou parseerror(parser, "return with invalid expression"); } - ret = ast_return_new(exp->expression.node.context, exp); + ret = ast_return_new(ctx, exp); if (!ret) { ast_delete(exp); return false; -- 2.39.2