From 18bb6a1b17f926245623f61a03314a92551dfc7c Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 02:14:17 +0200 Subject: [PATCH] :art: Clean cpy_ast --- src/parse/cpy_ast.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.43.0