Keep expression width when evaluating expressions ahead of time.

Added 'expr_wid' parameter to calls to 'eval_expr()' within
PEBinary::elaborate_eval_expr_base_()'.  This makes a specific problem
go away and may even be the correct thing to do.
This commit is contained in:
Patrick Doyle
2010-08-06 22:13:13 -07:00
committed by Stephen Williams
parent f23a56e632
commit 2ffc2d36f2
+2 -2
View File
@@ -314,8 +314,8 @@ NetExpr* PEBinary::elaborate_eval_expr_base_(Design*des,
{
/* If either expression can be evaluated ahead of time, then
do so. This can prove helpful later. */
eval_expr(lp);
eval_expr(rp);
eval_expr(lp, expr_wid);
eval_expr(rp, expr_wid);
return elaborate_expr_base_(des, lp, rp, expr_wid);
}