Call probe_expr_width() for repeat expression.

The repeat expression is evaluated in a self determined context
(expression width == -1). It needs to call probe_expr_width() to
figure out the width needed by the expression before calling
elab_and_eval() to elaborate the expression.
This commit is contained in:
Cary R 2010-04-30 18:37:07 -07:00 committed by Stephen Williams
parent 26b95b94f7
commit 92f2ee18e7
1 changed files with 1 additions and 0 deletions

View File

@ -3675,6 +3675,7 @@ NetProc* PRepeat::elaborate(Design*des, NetScope*scope) const
{
assert(scope);
probe_expr_width(des, scope, expr_);
NetExpr*expr = elab_and_eval(des, scope, expr_, -1);
if (expr == 0) {
cerr << get_fileline() << ": Unable to elaborate"