From c60fb94b6c45ca74632e972995555170063b3a03 Mon Sep 17 00:00:00 2001 From: gatecat <gatecat@ds0.me> Date: Wed, 10 Aug 2022 18:58:22 +0100 Subject: refactor: Use IdString::in instead of || chains Signed-off-by: gatecat <gatecat@ds0.me> --- nexus/arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nexus/arch.h') diff --git a/nexus/arch.h b/nexus/arch.h index d713afcf..4a28dfb7 100644 --- a/nexus/arch.h +++ b/nexus/arch.h @@ -1072,7 +1072,7 @@ struct Arch : BaseArch<ArchRanges> bool getBelGlobalBuf(BelId bel) const override { IdString type = getBelType(bel); - return type == id_DCC || type == id_VCC_DRV; + return type.in(id_DCC, id_VCC_DRV); } IdString getBelType(BelId bel) const override -- cgit v1.2.3