aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-07-26 23:51:58 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-07-26 23:51:58 -0700
commit06c4b35eb12a54a4e260a80ed8ed21eb5bfae09a (patch)
tree33d8366daa35741ce302df23e2be1e217aa20187 /src/parser.cpp
parentbc81ddfea67db0b3756027e98cc00bb8fa903a20 (diff)
downloadzig-06c4b35eb12a54a4e260a80ed8ed21eb5bfae09a.tar.gz
zig-06c4b35eb12a54a4e260a80ed8ed21eb5bfae09a.zip
std: improve rand implementation and API
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 418a9d210f..6ff43217c0 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -3301,6 +3301,8 @@ AstNode *ast_clone_subtree_special(AstNode *old_node, uint32_t *next_node_index,
case NodeTypeWhileExpr:
clone_subtree_field(&new_node->data.while_expr.condition, old_node->data.while_expr.condition, next_node_index);
clone_subtree_field(&new_node->data.while_expr.body, old_node->data.while_expr.body, next_node_index);
+ clone_subtree_field(&new_node->data.while_expr.continue_expr,
+ old_node->data.while_expr.continue_expr, next_node_index);
break;
case NodeTypeForExpr:
clone_subtree_field(&new_node->data.for_expr.elem_node, old_node->data.for_expr.elem_node, next_node_index);