[qfcc] Make non-const params references for spir-v

The whole reason for the reference work.
This commit is contained in:
Bill Currie 2024-10-26 13:33:39 +09:00
parent af42b8e221
commit 295cc0e0b2

View file

@ -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;
}