From: fennecdjay Date: Fri, 11 Oct 2019 00:14:17 +0000 (+0200) Subject: :art: Clean cpy_ast X-Git-Tag: nightly~2187 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=18bb6a1b17f926245623f61a03314a92551dfc7c;p=gwion.git :art: Clean cpy_ast --- diff --git a/src/parse/cpy_ast.c b/src/parse/cpy_ast.c index 74ef7f83..4337474e 100644 --- a/src/parse/cpy_ast.c +++ b/src/parse/cpy_ast.c @@ -286,8 +286,7 @@ ANN static void cpy_stmt_auto(MemPool p, Stmt_Auto a, const Stmt_Auto src) { a->exp = cpy_exp(p, src->exp); if(src->body) a->body = cpy_stmt(p, src->body); - if(src->is_ptr) - a->is_ptr = src->is_ptr; + a->is_ptr = src->is_ptr; } ANN static void cpy_stmt_loop(MemPool p, Stmt_Loop a, const Stmt_Loop src) {