diff options
| author | gingerBill <bill@gingerbill.org> | 2018-09-10 08:50:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-09-10 08:50:20 +0100 |
| commit | 4c4de1d6c496d07e3e60caac1704fc3e5b565ffe (patch) | |
| tree | 57444cd81acc5770f783339d82057f02f14098e2 /src/parser.cpp | |
| parent | c8b30de771f0655ea24bbba6c999ecb18df18008 (diff) | |
Fix cloning of `auto_cast` Ast
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index a4bc16116..cfdd9ad01 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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; |