Use the correct field when dechaining aliases.

op_type and type always confuse me :P
This commit is contained in:
Bill Currie 2012-11-19 12:53:08 +09:00
parent c03511734d
commit f2cc82469a
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ expr_alias (sblock_t *sblock, expr_t *e, operand_t **op)
while ((*op)->o.alias->op_type == op_alias) {
operand_t *top = (*op)->o.alias;
(*op)->o.alias = (*op)->o.alias->o.alias;
top->type = op_symbol; // so free_operand won't follow the alias
top->op_type = op_symbol; // so free_operand won't follow the alias
free_operand (top);
}
return sblock;