Skip to content

Commit aaf308c

Browse files
authored
Merge pull request #8767 from The-OpenROAD-Project-staging/update-sta
update sta for path group issue
2 parents a759e53 + 1c90758 commit aaf308c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/gui/src/staGuiInterface.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,10 @@ sta::PathEndVisitor* PathGroupSlackEndVisitor::copy() const
890890
void PathGroupSlackEndVisitor::visit(sta::PathEnd* path_end)
891891
{
892892
sta::Search* search = sta_->search();
893-
if (search->pathGroup(path_end) == path_group_) {
893+
const sta::PathGroupSeq path_groups = search->pathGroups(path_end);
894+
const auto iter
895+
= std::find(path_groups.begin(), path_groups.end(), path_group_);
896+
if (iter != path_groups.end()) {
894897
if (clk_ != nullptr) {
895898
sta::Path* path = path_end->path();
896899
if (path->clock(sta_) != clk_) {

0 commit comments

Comments
 (0)