From 295cc0e0b29e3800781bd2f576902028ab94d1e5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 26 Oct 2024 13:33:39 +0900 Subject: [PATCH] [qfcc] Make non-const params references for spir-v The whole reason for the reference work. --- tools/qfcc/source/target_spirv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/target_spirv.c b/tools/qfcc/source/target_spirv.c index abb1e10f4..c0adfb4ef 100644 --- a/tools/qfcc/source/target_spirv.c +++ b/tools/qfcc/source/target_spirv.c @@ -882,6 +882,7 @@ spirv_create_param (symtab_t *parameters, symbol_t *param, param_qual_t qual) auto type = param->type; if (qual != pq_const) { param->lvalue = true; + type = reference_type (type); } param->type = type; }