Define the mode when testing the width of a wait statement argument.
If a wait statement has a constant argument then the mode must be defined before test_width() is called since the current mode is used in the PENumber test_width routine.
This commit is contained in:
parent
e22c692656
commit
50a2f55364
|
|
@ -3500,7 +3500,7 @@ NetProc* PEventStatement::elaborate_wait(Design*des, NetScope*scope,
|
|||
/* Elaborate wait expression. Don't eval yet, we will do that
|
||||
shortly, after we apply a reduction or. */
|
||||
|
||||
PExpr::width_mode_t mode;
|
||||
PExpr::width_mode_t mode = PExpr::SIZED;
|
||||
pe->test_width(des, scope, mode);
|
||||
NetExpr*expr = pe->elaborate_expr(des, scope, pe->expr_width(),
|
||||
PExpr::NO_FLAGS);
|
||||
|
|
|
|||
Loading…
Reference in New Issue