From 12381a04108332d56b46dccd9145cb6e6fa5534e Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sat, 23 May 2020 18:04:35 +0200 Subject: [PATCH] r600/sfn: use modern c++ in printing LDS read instruction Closes #3021 Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp b/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp index b58b6156725..570f8f2a93e 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp @@ -5,11 +5,11 @@ namespace r600 { void LDSReadInstruction::do_print(std::ostream& os) const { os << "LDS Read ["; - for (unsigned i = 0; i < m_address.size(); ++i) - os << *m_dest_value[i] << " "; + for (auto& v : m_dest_value) + os << *v << " "; os << "], "; - for (unsigned i = 0; i < m_address.size(); ++i) - os << *m_address[i] << " "; + for (auto& a : m_address) + os << *a << " "; } LDSReadInstruction::LDSReadInstruction(std::vector& address, std::vector& value): -- 2.30.2