Add a # prefix to EXTPARM%i

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-18 20:11:14 +01:00
parent f023004a67
commit 45cd90c777

2
ir.c
View file

@ -2711,7 +2711,7 @@ static void ir_gen_extparam(ir_builder *ir)
ir_value *global; ir_value *global;
char name[128]; char name[128];
snprintf(name, sizeof(name), "EXTPARM%i", (int)(vec_size(ir->extparams)+8)); snprintf(name, sizeof(name), "#EXTPARM%i", (int)(vec_size(ir->extparams)+8));
global = ir_value_var(name, store_global, TYPE_VECTOR); global = ir_value_var(name, store_global, TYPE_VECTOR);
def.name = code_genstring(name); def.name = code_genstring(name);