add the type for the invalid-type-for-global message

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-19 20:37:10 +02:00
parent af3d9e0bdf
commit c2925b61f2

3
ir.c
View file

@ -2740,7 +2740,8 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global)
return true; return true;
default: default:
/* refuse to create 'void' type or any other fancy business. */ /* refuse to create 'void' type or any other fancy business. */
irerror(global->context, "Invalid type for global variable %s\n", global->name); irerror(global->context, "Invalid type for global variable `%s`: %s\n",
global->name, type_name[global->vtype]);
return false; return false;
} }
} }