Print the name, not the struct pointer :S

This commit is contained in:
Wolfgang Bumiller 2012-05-13 14:06:50 +02:00
parent 9ef0435f9d
commit dc74573fae

2
ir.c
View file

@ -1978,7 +1978,7 @@ static bool gen_global_function(ir_builder *ir, ir_value *global)
fun.firstlocal = code_globals_elements;
for (i = 0; i < irfun->locals_count; ++i) {
if (!ir_builder_gen_global(ir, irfun->locals[i])) {
printf("Failed to generate global %s\n", irfun->locals[i]);
printf("Failed to generate global %s\n", irfun->locals[i]->name);
return false;
}
}