Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
comaniac committed Apr 9, 2020
1 parent 25c9df1 commit 0b6fbcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/relay/analysis/annotated_region_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void AnnotatedRegionSetNode::AddToRegion(AnnotatedRegion dest, const Expr& expr)
}
}

AnnotatedRegion AnnotatedRegionSetNode::MakeRegion(std::string target) {
AnnotatedRegion AnnotatedRegionSetNode::MakeRegion(const std::string& target) {
auto ret = regions_.emplace(AnnotatedRegion());
(*ret.first)->id_ = region_id_++;
(*ret.first)->target_ = target;
Expand Down
2 changes: 1 addition & 1 deletion src/relay/analysis/annotated_region_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class AnnotatedRegionSetNode : public Object {
*
* \return The new region.
*/
AnnotatedRegion MakeRegion(std::string target);
AnnotatedRegion MakeRegion(const std::string& target);

std::unordered_set<AnnotatedRegion, ObjectHash, ObjectEqual> regions_;
/*! \brief The next region ID to assign. */
Expand Down

0 comments on commit 0b6fbcb

Please sign in to comment.