From: Wolfgang (Blub) Bumiller Date: Sat, 10 Nov 2012 11:44:18 +0000 (+0100) Subject: Locals of type .vector will now also properly generate all 3 locals X-Git-Tag: 0.1~19^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42b98483753842714707214f115d3a3ba5cc4780;p=xonotic%2Fgmqcc.git Locals of type .vector will now also properly generate all 3 locals --- diff --git a/ast.c b/ast.c index b5c20a4..2f218e3 100644 --- a/ast.c +++ b/ast.c @@ -966,6 +966,8 @@ bool ast_local_codegen(ast_value *self, ir_function *func, bool param) v = ir_function_create_local(func, self->name, self->expression.vtype, param); if (!v) return false; + if (self->expression.vtype == TYPE_FIELD) + v->fieldtype = self->expression.next->expression.vtype; v->context = ast_ctx(self); /* A constant local... hmmm...