diff options
author | Teddy <[email protected]> | 2014-05-04 22:54:29 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-05-04 22:54:29 +0800 |
commit | 230b90822e0e5e2598f3b40fed19a712097d5908 (patch) | |
tree | e149044308aad9a6809d73b0e7c6491e4cea5f8e | |
parent | 679c091bf746798e7272ac0842cf3d8dd9dd6251 (diff) |
remove redundant code
-rw-r--r-- | semantics.c | 9 |
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; |