From: Wolfgang (Blub) Bumiller Date: Sun, 19 Aug 2012 14:59:59 +0000 (+0200) Subject: Fixing a misleading error message in ir.c X-Git-Tag: 0.1-rc1~164 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=611973bc59bbd0924405661ff0a407bfc9a4ed91;p=xonotic%2Fgmqcc.git Fixing a misleading error message in ir.c --- diff --git a/ir.c b/ir.c index ed01439..02fb656 100644 --- a/ir.c +++ b/ir.c @@ -2551,7 +2551,7 @@ static bool gen_global_function(ir_builder *ir, ir_value *global) local_var_end = fun.firstlocal; for (i = 0; i < irfun->locals_count; ++i) { if (!ir_builder_gen_global(ir, irfun->locals[i])) { - irerror(irfun->locals[i]->context, "Failed to generate global %s\n", irfun->locals[i]->name); + irerror(irfun->locals[i]->context, "Failed to generate local %s\n", irfun->locals[i]->name); return false; } }