Skip to content

Commit f9339a1

Browse files
const ref foreach
1 parent 467cdb4 commit f9339a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/opt/instruction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ bool Instruction::IsSetBindingUniformlyReadOnly() const {
586586
assert(false && "Set and binding couldn't be resolved!");
587587
return false;
588588
}
589-
for (const auto other_inst : context()->types_values()) {
589+
for (const auto& other_inst : context()->types_values()) {
590590
if (other_inst.opcode() != spv::Op::OpVariable) {
591591
continue;
592592
}

0 commit comments

Comments
 (0)