summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-04-28 19:22:34 +0200
committerLiam <byteslice@airmail.cc>2022-04-28 22:50:34 +0200
commit709d7fd92c948dcf44897362d353d540abb38a1f (patch)
tree46fd44db803df394798c89bcebc73e8f71fc6bfd /src/shader_recompiler
parentMerge pull request #8260 from Morph1984/c4146 (diff)
downloadyuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar
yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar.gz
yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar.bz2
yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar.lz
yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar.xz
yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.tar.zst
yuzu-709d7fd92c948dcf44897362d353d540abb38a1f.zip
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/ir_opt/verification_pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/verification_pass.cpp b/src/shader_recompiler/ir_opt/verification_pass.cpp
index e2ef2b0b3..f89f4ac28 100644
--- a/src/shader_recompiler/ir_opt/verification_pass.cpp
+++ b/src/shader_recompiler/ir_opt/verification_pass.cpp
@@ -43,7 +43,7 @@ static void ValidateUses(const IR::Program& program) {
}
}
}
- for (const auto [inst, uses] : actual_uses) {
+ for (const auto& [inst, uses] : actual_uses) {
if (inst->UseCount() != uses) {
throw LogicError("Invalid uses in block: {}", IR::DumpProgram(program));
}