Skip to content

Commit

Permalink
Add numeric literal case
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Aug 27, 2020
1 parent 0aa2569 commit 688ccba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assign_inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ void Blacklister::blacklist_invalid_driver(std::unique_ptr<Identifier> node) {
// Can only inline if driven by identifier, index, or slice
bool valid_driver = dynamic_cast<Identifier*>(driver.get()) ||
dynamic_cast<Index*>(driver.get()) ||
dynamic_cast<Slice*>(driver.get());
dynamic_cast<Slice*>(driver.get()) ||
dynamic_cast<NumericLiteral*>(driver.get());
if (!valid_driver) {
this->wire_blacklist.insert(node->value);
} else if (auto ptr = dynamic_cast<Identifier*>(driver.get())) {
Expand Down

0 comments on commit 688ccba

Please sign in to comment.