Add another missing probe_expr_width() call.

The indexed select width argument was missing a call to
probe_expr_width() and was crashing the compiler.
This commit is contained in:
Cary R 2010-08-14 09:18:07 -07:00 committed by Stephen Williams
parent 2c11850f3c
commit 6257d31582
1 changed files with 1 additions and 0 deletions

View File

@ -1902,6 +1902,7 @@ bool PEIdent::calculate_up_do_width_(Design*des, NetScope*scope,
/* Calculate the width expression (in the lsb_ position)
first. If the expression is not constant, error but guess 1
so we can keep going and find more errors. */
probe_expr_width(des, scope, index_tail.lsb);
need_constant_expr = true;
NetExpr*wid_ex = elab_and_eval(des, scope, index_tail.lsb, -1);
need_constant_expr = false;