kernel: IdString::in(const IdString &) as per @Tjoppen

This commit is contained in:
Eddie Hung
2020-04-02 07:14:08 -07:00
parent 18d85b88ae
commit 2d86563bb2
+1 -1
View File
@@ -369,7 +369,7 @@ namespace RTLIL
return result;
}
bool in(IdString rhs) const { return *this == rhs; }
bool in(const IdString &rhs) const { return *this == rhs; }
bool in(const char *rhs) const { return *this == rhs; }
bool in(const std::string &rhs) const { return *this == rhs; }
bool in(const pool<IdString> &rhs) const { return rhs.count(*this) != 0; }