diff options
-rw-r--r-- | common/nextpnr.h | 2 | ||||
-rw-r--r-- | docs/archapi.md | 2 |
2 files changed, 2 insertions, 2 deletions
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 <typename R> struct BaseArch : ArchAPI<R> // Decal methods virtual typename R::DecalGfxRangeT getDecalGraphics(DecalId decal) const override { - NPNR_ASSERT_FALSE("unreachable"); + return empty_if_possible<typename R::DecalGfxRangeT>(); }; virtual DecalXY getBelDecal(BelId bel) const override { return DecalXY(); } virtual DecalXY getWireDecal(WireId wire) const override { return DecalXY(); } diff --git a/docs/archapi.md b/docs/archapi.md index 3535122e..df7cd0a1 100644 --- a/docs/archapi.md +++ b/docs/archapi.md @@ -573,7 +573,7 @@ Return the graphic elements that make up a decal. The same decal must always produce the same list. If the graphics for a design element changes, that element must return another decal. -*BaseArch default: asserts false as unreachable due to there being no decals* +*BaseArch default: returns default-constructed range* ### DecalXY getBelDecal(BelId bel) const |