Fix assertion in error recovery.

This commit is contained in:
Stephen Williams 2019-10-02 19:30:47 -07:00
parent ed75bc22ec
commit 4f48a7ed41
1 changed files with 2 additions and 3 deletions

View File

@ -126,9 +126,8 @@ PEBinary::~PEBinary()
void PEBinary::declare_implicit_nets(LexicalScope*scope, NetNet::Type type)
{
assert(left_ && right_);
left_->declare_implicit_nets(scope, type);
right_->declare_implicit_nets(scope, type);
if (left_) left_->declare_implicit_nets(scope, type);
if (right_) right_->declare_implicit_nets(scope, type);
}
bool PEBinary::has_aa_term(Design*des, NetScope*scope) const