diff --git a/kernel/rtlil.h b/kernel/rtlil.h index c0b686cc9..de4530b0e 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -1786,11 +1786,13 @@ public: throw std::out_of_range("FakeParams::size()"); } } - bool empty() const { - return !size(); - } + bool empty() const { return !size(); } // The need for this function implies setPort will be used on incompat types - void erase(const RTLIL::IdString& paramname) const { (void)paramname; } + void erase(const RTLIL::IdString ¶mname) const + { + if (parent->is_legacy()) + parent->legacy->parameters.erase(paramname); + } // The need for this function implies setPort will be used on incompat types void clear() const {} // AAA