| ... | @@ -2861,8 +2861,12 @@ static void clone_subtree_list_ptr(ZigList<AstNode *> **dest_ptr, ZigList<AstNod | ... | @@ -2861,8 +2861,12 @@ static void clone_subtree_list_ptr(ZigList<AstNode *> **dest_ptr, ZigList<AstNod |
| 2861 | } | 2861 | } |
| 2862 | | 2862 | |
| 2863 | static void clone_subtree_field(AstNode **dest, AstNode *src, uint32_t *next_node_index) { | 2863 | static void clone_subtree_field(AstNode **dest, AstNode *src, uint32_t *next_node_index) { |
| 2864 | *dest = ast_clone_subtree(src, next_node_index); | 2864 | if (src) { |
| 2865 | (*dest)->parent_field = dest; | 2865 | *dest = ast_clone_subtree(src, next_node_index); |
| | 2866 | (*dest)->parent_field = dest; |
| | 2867 | } else { |
| | 2868 | *dest = nullptr; |
| | 2869 | } |
| 2866 | } | 2870 | } |
| 2867 | | 2871 | |
| 2868 | static void clone_subtree_tld(TopLevelDecl *dest, TopLevelDecl *src, uint32_t *next_node_index) { | 2872 | static void clone_subtree_tld(TopLevelDecl *dest, TopLevelDecl *src, uint32_t *next_node_index) { |