aboutsummaryrefslogtreecommitdiffstats
path: root/passes/hierarchy
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-06 19:08:33 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-06 19:08:33 -0700
commitee7c970367c68fe1a02a237ed01f2845a03cf9b2 (patch)
tree8ef4e5a13318311f02031b2608bc71351e4ded78 /passes/hierarchy
parent234fcf1724941b5c4fa77cc0359d339ddd36aeb3 (diff)
downloadyosys-ee7c970367c68fe1a02a237ed01f2845a03cf9b2.tar.gz
yosys-ee7c970367c68fe1a02a237ed01f2845a03cf9b2.tar.bz2
yosys-ee7c970367c68fe1a02a237ed01f2845a03cf9b2.zip
IdString::str().substr() -> IdString::substr()
Diffstat (limited to 'passes/hierarchy')
-rw-r--r--passes/hierarchy/hierarchy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc
index ff5c3b6a1..1319225ff 100644
--- a/passes/hierarchy/hierarchy.cc
+++ b/passes/hierarchy/hierarchy.cc
@@ -203,7 +203,7 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
int idx = std::stoi(cell->type.substr(pos_idx + 1, pos_num));
int num = std::stoi(cell->type.substr(pos_num + 1, pos_type));
array_cells[cell] = std::pair<int, int>(idx, num);
- cell->type = cell->type.str().substr(pos_type + 1);
+ cell->type = cell->type.substr(pos_type + 1);
}
dict<RTLIL::IdString, RTLIL::Module*> interfaces_to_add_to_submodule;
dict<RTLIL::IdString, RTLIL::IdString> modports_used_in_submodule;