From 3af34263abacb98b8066891a4c982cf9542e70dc Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 8 Aug 2012 13:33:27 -0700 Subject: [PATCH] Fix a bug where top level module ports were double elaborated --- elaborate.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/elaborate.cc b/elaborate.cc index 38e6dd451..dfb374b70 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -5050,10 +5050,8 @@ Design* elaborate(listroots) for (unsigned pin = 0; pin < mport.size(); pin += 1) { // This really does more than we need and adds extra // stuff to the design that should be cleaned later. - (void) mport[pin]->elaborate_subport(des, scope); NetNet *netnet = mport[pin]->elaborate_subport(des, scope); - if( netnet != 0 ) - { + if (netnet != 0) { // Elaboration may actually fail with erroneous input source prt_vector_width += netnet->vector_width(); ptype = PortType::merged(netnet->port_type(), ptype);