From 230b90822e0e5e2598f3b40fed19a712097d5908 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 4 May 2014 22:54:29 +0800 Subject: remove redundant code --- semantics.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/semantics.c b/semantics.c index 77d4b54..3379321 100644 --- a/semantics.c +++ b/semantics.c @@ -1096,16 +1096,7 @@ ExpType exp_check_postfix(CNode *p, CScope_t scope) { ERROR((p, "array subscript is not an integer")); p->ext.is_const = 0; if (t1 == CARR) - { op1.type = op1.type->rec.arr.elem; - if ((p->ext.is_const = p->chd->ext.is_const && \ - post->chd->ext.is_const)) - { - p->ext.offset = p->chd->ext.offset + \ - calc_size(op1.type) * post->chd->ext.const_val; - p->ext.var = p->chd->ext.var; - } - } else op1.type = op1.type->rec.ref; op1.lval = 1; -- cgit v1.2.3