From 0b8d272292ca3f7fdb44efac65f012b484d962a2 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 15 May 2025 13:37:07 +0330 Subject: better copy management in ast --- src/compiler/ast-tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index de0dcd7..7d6dd5f 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -405,7 +405,7 @@ AstTree *makeTypeOfFunction(AstTreeFunction *function, const char *str_begin, const char *str_end); bool typeIsEqual(AstTree *type0, AstTree *type1); bool typeIsEqualBack(const AstTree *type0, const AstTree *type1); -AstTree *getValue(AstTree *tree); +AstTree *getValue(AstTree *tree,bool copy); bool isIntType(AstTree *type); bool isEqual(AstTree *left, AstTree *right); bool isEqualVariable(AstTreeVariable *left, AstTreeVariable *right); -- cgit v1.2.3