]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fixing a misleading error message in ir.c
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 14:59:59 +0000 (16:59 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 19 Aug 2012 14:59:59 +0000 (16:59 +0200)
ir.c

diff --git a/ir.c b/ir.c
index ed01439943131636e368a48cee3b4d45f5d39e65..02fb65642839b44435ff46504f618983b2c18970 100644 (file)
--- 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;
         }
     }