nexus: Fail gracefully when seeing special pins

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-03-05 12:15:58 +00:00
parent 1aab019f1e
commit f0e30abf62

View File

@ -781,7 +781,7 @@ Loc Arch::get_pad_loc(const PadInfoPOD *pad) const
BelId Arch::get_pad_pio_bel(const PadInfoPOD *pad) const
{
if (pad == nullptr)
if (pad == nullptr || pad->offset == -1)
return BelId();
return getBelByLocation(get_pad_loc(pad));
}