Handle a void function call in the delay type calculation
This commit is contained in:
parent
cf53584733
commit
5edecab41f
|
|
@ -2974,7 +2974,12 @@ DelayType NetTaskDef::delay_type(bool print_delay) const
|
||||||
|
|
||||||
DelayType NetUTask::delay_type(bool print_delay) const
|
DelayType NetUTask::delay_type(bool print_delay) const
|
||||||
{
|
{
|
||||||
|
// Is this a void function call in a final block?
|
||||||
|
if (task()->type() == NetScope::FUNC) {
|
||||||
|
return NO_DELAY;
|
||||||
|
} else {
|
||||||
return task()->task_def()->delay_type(print_delay);
|
return task()->task_def()->delay_type(print_delay);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool do_expr_event_match(const NetExpr*expr, const NetEvWait*evwt)
|
static bool do_expr_event_match(const NetExpr*expr, const NetEvWait*evwt)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue