Skip to content

Commit 135185f

Browse files
alister-chowdhurys-perron
authored andcommitted
const ref foreach
1 parent 081ca36 commit 135185f

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
@@ -587,7 +587,7 @@ bool Instruction::IsSetBindingUniformlyReadOnly() const {
587587
assert(false && "Set and binding couldn't be resolved!");
588588
return false;
589589
}
590-
for (const auto other_inst : context()->types_values()) {
590+
for (const auto& other_inst : context()->types_values()) {
591591
if (other_inst.opcode() != spv::Op::OpVariable) {
592592
continue;
593593
}

0 commit comments

Comments
 (0)