Fix cloning of auto_cast Ast

This commit is contained in:
gingerBill
2018-09-10 08:50:20 +01:00
parent c8b30de771
commit 4c4de1d6c4

View File

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