From ab51b60b81324524bc50984e656a430c4465a8ae Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Tue, 2 Sep 2025 02:43:03 +0000 Subject: [PATCH] Make in() variadic operator take parameters by reference so we don't copy IdStrings Template argument deduction strips references. --- kernel/rtlil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rtlil.h b/kernel/rtlil.h index e0de79ea9..ea358d83b 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -411,7 +411,7 @@ struct RTLIL::IdString // often one needs to check if a given IdString is part of a list (for example a list // of cell types). the following functions helps with that. template - bool in(Args... args) const { + bool in(const Args &... args) const { return (... || in(args)); }