From 64964ee6e4e0d50b0781cf71dbe0ffcf6285a8af Mon Sep 17 00:00:00 2001 From: James Cherry Date: Tue, 3 Jan 2023 07:53:48 -0700 Subject: [PATCH] for ref instead of copy Signed-off-by: James Cherry --- sdc/WriteSdc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdc/WriteSdc.cc b/sdc/WriteSdc.cc index b399369f..7d84ded5 100644 --- a/sdc/WriteSdc.cc +++ b/sdc/WriteSdc.cc @@ -946,7 +946,7 @@ ClockGroupLess::operator()(const ClockGroup *clk_group1, void WriteSdc::writeClockGroups() const { - for (auto name_groups : sdc_->clk_groups_name_map_) { + for (auto &name_groups : sdc_->clk_groups_name_map_) { ClockGroups *clk_groups = name_groups.second; writeClockGroups(clk_groups); }