debug extparam naming shouldn't start at 8, it's confusing, param 9 is now named extparam0

This commit is contained in:
Wolfgang Bumiller 2013-01-25 15:37:09 +01:00
parent ef0de47954
commit 69e29c3ef8

2
ir.c
View file

@ -3113,7 +3113,7 @@ static ir_value* ir_gen_extparam_proto(ir_builder *ir)
ir_value *global;
char name[128];
snprintf(name, sizeof(name), "EXTPARM#%i", (int)(vec_size(ir->extparam_protos)+8));
snprintf(name, sizeof(name), "EXTPARM#%i", (int)(vec_size(ir->extparam_protos)));
global = ir_value_var(name, store_global, TYPE_VECTOR);
vec_push(ir->extparam_protos, global);