Copy named expressions.

Since expressions can be modified, making DAGs this early causes
corruption of the expression tree.
This commit is contained in:
Bill Currie 2011-02-10 14:43:49 +09:00
parent 6f625e426f
commit adeef4a4eb
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ convert_name (expr_t *e)
return;
}
if (sym->sy_type == sy_expr) {
new = sym->s.expr;
new = copy_expr (sym->s.expr);
goto convert;
}
if (sym->sy_type == sy_type)