Skip to content

Commit

Permalink
Fix nullptr error
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Aug 7, 2020
1 parent 8f13844 commit e2054f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assign_inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ std::unique_ptr<Module> AssignInliner::visit(std::unique_ptr<Module> node) {
node->body = this->do_inline(std::move(node->body));
// Now "reverse inline" output wires
for (auto output : this->output_ports) {
if (!this->assign_map.count(output)) {
continue;
}
std::unique_ptr<Expression> value = this->assign_map[output]->clone();
this->assign_map.erase(output);
if (dynamic_cast<Identifier*>(value.get()) &&
Expand Down

0 comments on commit e2054f2

Please sign in to comment.