Skip to content

Commit 2f448dc

Browse files
Avoid unnecessary copy in byte_operators.cpp
Without the & we are copying the items we are iterating over which is unnecessary here.
1 parent f747140 commit 2f448dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unit/solvers/lowering/byte_operators.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ SCENARIO("byte_extract_lowering", "[core][solvers][lowering][byte_extract]")
215215

216216
THEN("byte_extract lowering yields the expected value")
217217
{
218-
for(const auto endianness :
218+
for(const auto &endianness :
219219
{ID_byte_extract_little_endian, ID_byte_extract_big_endian})
220220
{
221221
for(const auto &t1 : types)
@@ -366,7 +366,7 @@ SCENARIO("byte_update_lowering", "[core][solvers][lowering][byte_update]")
366366

367367
THEN("byte_update lowering yields the expected value")
368368
{
369-
for(const auto endianness :
369+
for(const auto &endianness :
370370
{ID_byte_update_little_endian, ID_byte_update_big_endian})
371371
{
372372
for(const auto &t1 : types)

0 commit comments

Comments
 (0)