Remove valgrind errors triggered by virtual pins

NetBus wasn't initializing pin direction.
I hope Link::PASSIVE is correct for busses!
No test suite regressions.
(cherry picked from commit f344515e38)
This commit is contained in:
Larry Doolittle 2009-03-07 13:17:02 -08:00 committed by Stephen Williams
parent b795d8c1d8
commit 1d31a91b4f
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ NetBranch::~NetBranch()
NetBus::NetBus(NetScope*s, unsigned pin_count__)
: NetObj(s, perm_string::literal(""), pin_count__)
{
for (unsigned idx = 0 ; idx <pin_count__ ; idx += 1) {
pin(idx).set_dir(Link::PASSIVE);
}
}
NetBus::~NetBus()