ast_return needs the correct context...

This commit is contained in:
Wolfgang Bumiller 2012-12-20 15:01:19 +01:00
parent 3119a95a89
commit d76e6b103d

View file

@ -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;