not using cachedstring on generated string values anymore, it's not the IR's job

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-24 19:08:33 +02:00
parent 1d851a1400
commit bdffa662b6

2
ir.c
View file

@ -2707,7 +2707,7 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global, bool isloc
case TYPE_STRING: case TYPE_STRING:
{ {
if (global->isconst) 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 { else {
ir_value_code_setaddr(global, code_globals_add(0)); ir_value_code_setaddr(global, code_globals_add(0));
if (!islocal) if (!islocal)