3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-20 07:36:39 +00:00

rtlil: fix erase

This commit is contained in:
Emil J. Tywoniak 2024-07-11 12:05:03 +02:00
parent b13d092cfa
commit d04d8104c7

View file

@ -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 &paramname) 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