Skip to content

Commit

Permalink
use auto keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Feb 24, 2020
1 parent c7dc0a2 commit 4bdd08a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/assign_inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ bool AssignInliner::can_inline(std::string key) {
if (this->wire_blacklist.count(key)) {
return false;
}
std::map<std::string, std::unique_ptr<Expression>>::iterator it =
assign_map.find(key);
auto it = assign_map.find(key);
return it != assign_map.end() && (this->assign_count[key] == 1) &&
(this->read_count[key] == 1 ||
dynamic_cast<Identifier*>(it->second.get()) ||
Expand Down

0 comments on commit 4bdd08a

Please sign in to comment.