From: Wolfgang (Blub) Bumiller Date: Fri, 24 Aug 2012 17:08:33 +0000 (+0200) Subject: not using cachedstring on generated string values anymore, it's not the IR's job X-Git-Tag: 0.1-rc1~44 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bdffa662b6156fadcc9e530712e1982c900554d2;p=xonotic%2Fgmqcc.git not using cachedstring on generated string values anymore, it's not the IR's job --- diff --git a/ir.c b/ir.c index 1f9a80d..41575a5 100644 --- 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)