timing_log: Handle potentially missing net when reporting crit path

This commit is contained in:
Rowan Goemans 2024-10-04 02:01:45 +02:00
parent 75d2ce6a92
commit cbedb924fd

View File

@ -106,6 +106,10 @@ static void log_crit_paths(const Context *ctx, TimingResult &result)
log_info(" Sink %s.%s\n", segment.to.first.c_str(ctx),
segment.to.second.c_str(ctx));
// CLK_TO_CLK has no net and CLK_SKEW might have a net
if (ctx->nets.count(segment.net) == 0) {
continue;
}
const NetInfo *net = ctx->nets.at(segment.net).get();
if (ctx->verbose) {