]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
not using cachedstring on generated string values anymore, it's not the IR's job
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 24 Aug 2012 17:08:33 +0000 (19:08 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 24 Aug 2012 17:08:33 +0000 (19:08 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 1f9a80db3d213436fce94ad993f45dd46d1ab31b..41575a5f3e98ed5bcac1f5ca0ab1b989decbcc78 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2707,7 +2707,7 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global, bool isloc
     case TYPE_STRING:
     {
         if (global->isconst)
-            ir_value_code_setaddr(global, code_globals_add(code_cachedstring(global->constval.vstring)));
+            ir_value_code_setaddr(global, code_globals_add(code_genstring(global->constval.vstring)));
         else {
             ir_value_code_setaddr(global, code_globals_add(0));
             if (!islocal)