From a2810339208bf11728973804eb69bfe314e4dc65 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 3 Mar 2011 19:07:37 +0900 Subject: [PATCH] Alais the jump table's array to an integer. As per the previous commit, I'm not sure this is the right thing to do, but it works for now. --- tools/qfcc/source/switch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/switch.c b/tools/qfcc/source/switch.c index 4dec16ff8..8ab677da2 100644 --- a/tools/qfcc/source/switch.c +++ b/tools/qfcc/source/switch.c @@ -319,6 +319,7 @@ build_switch (expr_t *sw, case_node_t *tree, int op, expr_t *sw_val, sym = make_symbol (name, array_type (&type_integer, high - low + 1), pr.near_data, st_static); table = new_symbol_expr (sym); + table = new_alias_expr (&type_integer, table); if (tree->left) { branch = branch_expr (IFB, temp, low_label);