diff options
-rw-r--r-- | parse.y | 3 | ||||
-rw-r--r-- | rubyparser.h | 1 |
2 files changed, 1 insertions, 3 deletions
@@ -11666,7 +11666,6 @@ rb_node_ensure_new(struct parser_params *p, NODE *nd_head, NODE *nd_ensr, const { rb_node_ensure_t *n = NODE_NEWNODE(NODE_ENSURE, rb_node_ensure_t, loc); n->nd_head = nd_head; - n->nd_resq = 0; n->nd_ensr = nd_ensr; return n; @@ -14531,7 +14530,7 @@ reduce_nodes(struct parser_params *p, NODE **body) if (!subnodes(RNODE_WHEN, nd_body, nd_next)) goto end; break; case NODE_ENSURE: - if (!subnodes(RNODE_ENSURE, nd_head, nd_resq)) goto end; + body = &RNODE_ENSURE(node)->nd_head; break; case NODE_RESCUE: newline = 0; // RESBODY should not be a NEWLINE diff --git a/rubyparser.h b/rubyparser.h index e4f06a9052..e89c5bb1df 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -346,7 +346,6 @@ typedef struct RNode_ENSURE { NODE node; struct RNode *nd_head; - struct RNode *nd_resq; /* Maybe not used other than reduce_nodes */ struct RNode *nd_ensr; } rb_node_ensure_t; |