From 29b76b90fc8c16f5fe29ff700650110bbe8cd2a7 Mon Sep 17 00:00:00 2001 From: XLS Team Date: Sat, 24 Feb 2024 14:12:54 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 610047976 --- xls/jit/block_jit.cc | 4 ++-- xls/jit/proc_jit.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xls/jit/block_jit.cc b/xls/jit/block_jit.cc index 64c3ca74eb..170e487cc2 100644 --- a/xls/jit/block_jit.cc +++ b/xls/jit/block_jit.cc @@ -419,7 +419,7 @@ StreamingJitBlockEvaluator::EvaluateChannelizedSequentialBlock( if (XLS_VLOG_IS_ON(3)) { XLS_VLOG(3) << absl::StrFormat("Inputs Cycle %d", cycle); - for (auto [name, val] : input_set) { + for (const auto& [name, val] : input_set) { XLS_VLOG(3) << absl::StrFormat("%s: %s", name, val.ToString()); } } @@ -440,7 +440,7 @@ StreamingJitBlockEvaluator::EvaluateChannelizedSequentialBlock( if (XLS_VLOG_IS_ON(3)) { XLS_VLOG(3) << absl::StrFormat("Outputs Cycle %d", cycle); - for (auto [name, val] : outputs) { + for (const auto& [name, val] : outputs) { XLS_VLOG(3) << absl::StrFormat("%s: %s", name, val.ToString()); } } diff --git a/xls/jit/proc_jit.cc b/xls/jit/proc_jit.cc index fab7fa9cbe..fc9a966aaa 100644 --- a/xls/jit/proc_jit.cc +++ b/xls/jit/proc_jit.cc @@ -221,7 +221,7 @@ absl::StatusOr> ProcJit::Create( queue_mgr->elaboration().GetInstances(proc)) { jit->channel_queues_[proc_instance].resize( jit->jitted_function_base_.queue_indices().size()); - for (auto [channel_name, index] : + for (const auto& [channel_name, index] : jit->jitted_function_base_.queue_indices()) { XLS_ASSIGN_OR_RETURN( ChannelInstance * channel_instance,