common: Fix getNetinfoRouteDelay when net has no driver
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
f466ad0faf
commit
593d8e0ddf
@ -91,6 +91,8 @@ WireId Context::getNetinfoSinkWire(NetInfo *net_info, int user_idx) const
|
||||
delay_t Context::getNetinfoRouteDelay(NetInfo *net_info, int user_idx) const
|
||||
{
|
||||
WireId src_wire = getNetinfoSourceWire(net_info);
|
||||
if (src_wire == WireId())
|
||||
return 0;
|
||||
WireId cursor = getNetinfoSinkWire(net_info, user_idx);
|
||||
delay_t delay = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user