mem: Fix some reference use in range loops
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 17 Sep 2020 17:09:32 +0000 (18:09 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Mon, 28 Sep 2020 22:38:11 +0000 (22:38 +0000)
commit55cbc64d1eedcde9347d1a64c27215ab63b2867e
tree410fd2ebded897cc34d0325109896f65eb9fb8b0
parent4b63d5e7a87b3d7b30d41348c5edda3a02f5268c
mem: Fix some reference use in range loops

This change fixes two cases of range loops, one where we can't use
lvalue reference, and one more where we have to use an lvalue
reference as we can't create a copy. In both cases clang would warn.

Change-Id: I760aa094af66be32a150bad37acc21d6fd512a65
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34776
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/common/BoolVec.cc
src/mem/ruby/slicc_interface/RubySlicc_Util.hh
src/mem/ruby/system/Sequencer.cc