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-04 16:55:46 -04:00 committed by Stephen Williams
parent f23a56e632
commit 2ffc2d36f2
1 changed files with 2 additions and 2 deletions

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);
}