From: Wolfgang Bumiller <wolfgang.linux@bumiller.com>
Date: Sun, 13 May 2012 12:06:50 +0000 (+0200)
Subject: Print the name, not the struct pointer :S
X-Git-Tag: 0.1-rc1~485^2~9
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc74573faee6c821368388f849203d19734eab0d;p=xonotic%2Fgmqcc.git

Print the name, not the struct pointer :S
---

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;
         }
     }