From 0c6775a094055436851e5f5fc9043b97e464fc1f Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 28 Jul 1999 03:46:57 +0000 Subject: [PATCH] Handle no ports at all for tasks. --- elaborate.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/elaborate.cc b/elaborate.cc index 2bfdc8857..535d248eb 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: elaborate.cc,v 1.60 1999/07/24 19:19:06 steve Exp $" +#ident "$Id: elaborate.cc,v 1.61 1999/07/28 03:46:57 steve Exp $" #endif /* @@ -1838,7 +1838,7 @@ void PTask::elaborate(Design*des, const string&path) const up in the design. Then save that pointer for later use by calls to the task. (Remember, the task itself does not need these ports.) */ - svectorports (ports_->count()); + svectorports (ports_? ports_->count() : 0); for (unsigned idx = 0 ; idx < ports.count() ; idx += 1) { NetNet*tmp = des->find_signal(path, (*ports_)[idx]->name()); @@ -1969,6 +1969,9 @@ Design* elaborate(const map&modules, /* * $Log: elaborate.cc,v $ + * Revision 1.61 1999/07/28 03:46:57 steve + * Handle no ports at all for tasks. + * * Revision 1.60 1999/07/24 19:19:06 steve * Add support for task output and inout ports. *