diff --git a/kernel/rtlil.h b/kernel/rtlil.h index e12d9d049..7279835ea 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -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 &rhs) const { return rhs.count(*this) != 0; }