From dc74573faee6c821368388f849203d19734eab0d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 13 May 2012 14:06:50 +0200 Subject: [PATCH] Print the name, not the struct pointer :S --- ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir.c b/ir.c index 5c49a3b..848e488 100644 --- a/ir.c +++ b/ir.c @@ -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; } } -- 2.39.2