From: Eddie Hung Date: Wed, 1 Apr 2020 21:10:24 +0000 (-0700) Subject: kernel: IdString::in(const IdString &) as per @Tjoppen X-Git-Tag: working-ls180~697^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d86563bb206748d6eef498eb27f7a004f20113d;p=yosys.git kernel: IdString::in(const IdString &) as per @Tjoppen --- 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; }