diff --git a/kernel/rtlil.h b/kernel/rtlil.h index a42af354b..1809e1253 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -2040,13 +2040,13 @@ public: const RTLIL::Const &getParam(RTLIL::IdString paramname) const; template bool hasParam(N name) const - { return hasParam(module->twines().add(std::move(name))); } + { return hasParam(module->twines().find(std::string_view(name))); } template void unsetParam(N name) - { unsetParam(module->twines().add(std::move(name))); } + { unsetParam(module->twines().find(std::string_view(name))); } template void setParam(N name, RTLIL::Const value) { setParam(module->twines().add(std::move(name)), std::move(value)); } template const RTLIL::Const &getParam(N name) const - { return getParam(module->twines().add(std::move(name))); } + { return getParam(module->twines().find(std::string_view(name))); } void sort(); void check();