This commit is contained in:
James Cherry 2018-11-09 11:57:44 -08:00
parent e9bde796ec
commit 9071a01306
2 changed files with 7 additions and 2 deletions

View File

@ -924,10 +924,13 @@ Graph::delayAnnotated(Edge *edge)
while (arc_iter->hasNext()) {
TimingArc *arc = arc_iter->next();
for (DcalcAPIndex ap_index = 0; ap_index < ap_count_; ap_index++) {
if (arcDelayAnnotated(edge, arc, ap_index))
if (arcDelayAnnotated(edge, arc, ap_index)) {
delete arc_iter;
return true;
}
}
}
delete arc_iter;
return false;
}

View File

@ -2173,7 +2173,9 @@ Sdc::makeClkGroupSame(ClockGroup *group)
Clock *clk2 = clk_iter2.next();
if (clk1->index() <= clk2->index()) {
ClockPair *clk_pair = new ClockPair(clk1, clk2);
if (!clk_group_same_->hasKey(clk_pair))
if (clk_group_same_->hasKey(clk_pair))
delete clk_pair;
else
clk_group_same_->insert(clk_pair);
}
}