From: Wolfgang (Blub) Bumiller Date: Sat, 11 Aug 2012 20:14:45 +0000 (+0200) Subject: IR generation of vector-fields put the 'main' vector offset at the wrong position... X-Git-Tag: 0.1-rc1~349^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b168077c74a7cf1f35738d0d804afb1a50bb4a8;p=xonotic%2Fgmqcc.git IR generation of vector-fields put the 'main' vector offset at the wrong position - fixed that --- diff --git a/ir.c b/ir.c index d9fdcf7..e01da4d 100644 --- a/ir.c +++ b/ir.c @@ -2659,6 +2659,7 @@ static bool ir_builder_gen_field(ir_builder *self, ir_value *field) if (code_fields_add(fld) < 0) return false; + ir_value_code_setaddr(field, code_globals_elements); if (!code_globals_add(fld.offset)) return false; if (fld.type == TYPE_VECTOR) { @@ -2668,7 +2669,6 @@ static bool ir_builder_gen_field(ir_builder *self, ir_value *field) return false; } - ir_value_code_setaddr(field, code_globals_add(fld.offset)); return field->code.globaladdr >= 0; }