From 38c64c61b927072d77b5b24ed965c042952a7872 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 8 Dec 2024 19:03:41 +0900 Subject: [PATCH] [qfcc] Make new_call_expr non-const I really don't remember why I made it const. Although there are still others, new_* exression calls are meant to be mutable. --- tools/qfcc/include/expr.h | 4 ++-- tools/qfcc/source/expr.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/include/expr.h b/tools/qfcc/include/expr.h index 08842e3c6..0f5f2624d 100644 --- a/tools/qfcc/include/expr.h +++ b/tools/qfcc/include/expr.h @@ -702,8 +702,8 @@ expr_t *new_nil_expr (void); \return The new args expression node. */ expr_t *new_args_expr (void); -const expr_t *new_call_expr (const expr_t *func, const expr_t *args, - const type_t *ret_type); +expr_t *new_call_expr (const expr_t *func, const expr_t *args, + const type_t *ret_type); /** Create a new value expression node. diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index ef29ae680..33f31c015 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -2083,7 +2083,7 @@ jump_table_expr (const expr_t *table, const expr_t *index) return branch; } -const expr_t * +expr_t * new_call_expr (const expr_t *func, const expr_t *args, const type_t *ret_type) { expr_t *branch = new_expr ();