From 42b98483753842714707214f115d3a3ba5cc4780 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 10 Nov 2012 12:44:18 +0100 Subject: [PATCH] Locals of type .vector will now also properly generate all 3 locals --- ast.c | 2 ++ 1 file changed, 2 insertions(+) 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... -- 2.39.2