aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 5d79a487..0b168383 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -672,7 +672,7 @@ DecalXY Arch::getBelDecal(BelId bel) const
DecalXY decalxy;
decalxy.decal.type = DecalId::TYPE_BEL;
decalxy.decal.index = bel.index;
- decalxy.decal.active = bel_to_cell.at(bel.index) != IdString();
+ decalxy.decal.active = bel_to_cell.at(bel.index) != nullptr;
return decalxy;
}
@@ -681,7 +681,7 @@ DecalXY Arch::getWireDecal(WireId wire) const
DecalXY decalxy;
decalxy.decal.type = DecalId::TYPE_WIRE;
decalxy.decal.index = wire.index;
- decalxy.decal.active = wire_to_net.at(wire.index) != IdString();
+ decalxy.decal.active = wire_to_net.at(wire.index) != nullptr;
return decalxy;
}
@@ -690,7 +690,7 @@ DecalXY Arch::getPipDecal(PipId pip) const
DecalXY decalxy;
decalxy.decal.type = DecalId::TYPE_PIP;
decalxy.decal.index = pip.index;
- decalxy.decal.active = pip_to_net.at(pip.index) != IdString();
+ decalxy.decal.active = pip_to_net.at(pip.index) != nullptr;
return decalxy;
};