From f4d22af4bd3267d7c81886bb34f2eebe068702d9 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 13 Dec 2020 22:46:47 +0000 Subject: [PATCH] tgt-vlog95: fix assertion failure when function calls a void function --- tgt-vlog95/scope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vlog95/scope.c b/tgt-vlog95/scope.c index 81492652c..4d0c8a71f 100644 --- a/tgt-vlog95/scope.c +++ b/tgt-vlog95/scope.c @@ -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_JOIN_ANY: case IVL_ST_FORK_JOIN_NONE: - case IVL_ST_UTASK: case IVL_ST_WAIT: assert(0); 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_RELEASE: case IVL_ST_STASK: + case IVL_ST_UTASK: // this will be generated for a SV void function case IVL_ST_TRIGGER: break; /* Look for a disable in each block statement. */