tgt-vlog95: fix assertion failure when function calls a void function

This commit is contained in:
Martin Whitaker 2020-12-13 22:46:47 +00:00
parent f8c49469fa
commit f4d22af4bd
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,6 @@ static unsigned has_func_disable(ivl_scope_t scope, ivl_statement_t stmt)
case IVL_ST_FORK: case IVL_ST_FORK:
case IVL_ST_FORK_JOIN_ANY: case IVL_ST_FORK_JOIN_ANY:
case IVL_ST_FORK_JOIN_NONE: case IVL_ST_FORK_JOIN_NONE:
case IVL_ST_UTASK:
case IVL_ST_WAIT: case IVL_ST_WAIT:
assert(0); assert(0);
break; break;
@ -877,6 +876,7 @@ static unsigned has_func_disable(ivl_scope_t scope, ivl_statement_t stmt)
case IVL_ST_FREE: case IVL_ST_FREE:
case IVL_ST_RELEASE: case IVL_ST_RELEASE:
case IVL_ST_STASK: case IVL_ST_STASK:
case IVL_ST_UTASK: // this will be generated for a SV void function
case IVL_ST_TRIGGER: case IVL_ST_TRIGGER:
break; break;
/* Look for a disable in each block statement. */ /* Look for a disable in each block statement. */