From c956cae8244c094783edc7101fd0ca542c24e55b Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 12 Feb 2021 10:35:51 +0000 Subject: Make BaseArch getDecalGraphics return an empty range Fix assertion failure when opening the GUI on an arch without any decals. Signed-off-by: gatecat --- common/nextpnr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/nextpnr.h b/common/nextpnr.h index 26dcaac4..8d6ab4cc 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -1375,7 +1375,7 @@ template struct BaseArch : ArchAPI // Decal methods virtual typename R::DecalGfxRangeT getDecalGraphics(DecalId decal) const override { - NPNR_ASSERT_FALSE("unreachable"); + return empty_if_possible(); }; virtual DecalXY getBelDecal(BelId bel) const override { return DecalXY(); } virtual DecalXY getWireDecal(WireId wire) const override { return DecalXY(); } -- cgit v1.2.3