aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--semantics.c9
1 files changed, 0 insertions, 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;