Additional cleanup of void function elaboration.

This commit is contained in:
Martin Whitaker 2019-11-09 20:15:31 +00:00
parent cab9526e6c
commit a8f71d3c92
1 changed files with 1 additions and 1 deletions

View File

@ -3719,7 +3719,7 @@ NetProc* PCallTask::elaborate_build_call_(Design*des, NetScope*scope,
} else if (task->type() == NetScope::FUNC) {
NetFuncDef*tmp = task->func_def();
if (tmp->return_sig() != 0) {
if (!tmp->is_void()) {
cerr << get_fileline() << ": error: "
<< "Calling a non-void function as a task." << endl;
des->errors += 1;