Fix for pr2169870.

This patch fixes a bug which prevented storage being allocated for
automatic tasks that had no input or output parameters.
This commit is contained in:
Martin Whitaker 2008-10-16 19:34:22 +01:00 committed by Stephen Williams
parent 50550ca79e
commit cb2ed9210c
1 changed files with 3 additions and 3 deletions

View File

@ -2460,9 +2460,9 @@ NetProc* PCallTask::elaborate_usr(Design*des, NetScope*scope) const
NetUTask*cur;
/* Handle tasks with no parameters specially. There is no need
to make a sequential block to hold the generated code. */
if (nparms() == 0) {
/* Handle non-automatic tasks with no parameters specially. There is
no need to make a sequential block to hold the generated code. */
if ((nparms() == 0) && !task->is_auto()) {
cur = new NetUTask(task);
cur->set_line(*this);
return cur;