From 2d86563bb206748d6eef498eb27f7a004f20113d Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 1 Apr 2020 14:10:24 -0700 Subject: [PATCH] kernel: IdString::in(const IdString &) as per @Tjoppen --- kernel/rtlil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2