Browse Source

Fix cloning of `auto_cast` Ast

gingerBill 7 years ago
parent
commit
4c4de1d6c4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/parser.cpp

+ 3 - 0
src/parser.cpp

@@ -203,6 +203,9 @@ Ast *clone_ast(Ast *node) {
 		n->TypeCast.type = clone_ast(n->TypeCast.type);
 		n->TypeCast.type = clone_ast(n->TypeCast.type);
 		n->TypeCast.expr = clone_ast(n->TypeCast.expr);
 		n->TypeCast.expr = clone_ast(n->TypeCast.expr);
 		break;
 		break;
+	case Ast_AutoCast:
+		n->AutoCast.expr = clone_ast(n->AutoCast.expr);
+		break;
 
 
 	case Ast_BadStmt:   break;
 	case Ast_BadStmt:   break;
 	case Ast_EmptyStmt: break;
 	case Ast_EmptyStmt: break;