diff options
author | Mai M <mathew1800@gmail.com> | 2022-04-28 23:28:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 23:28:07 -0400 |
commit | 5687bc6e103d47d5ddf1ac4380a939f1287bdb31 (patch) | |
tree | 9eac623466c034656b87ae866b73cfba1bf3a925 /src/shader_recompiler/ir_opt/verification_pass.cpp | |
parent | f3128fe915219a3564be366d3ab0c317422f0fc5 (diff) | |
parent | 709d7fd92c948dcf44897362d353d540abb38a1f (diff) |
Merge pull request #8282 from liamwhite/gcc-12
GCC 12 fixes
Diffstat (limited to 'src/shader_recompiler/ir_opt/verification_pass.cpp')
-rw-r--r-- | src/shader_recompiler/ir_opt/verification_pass.cpp | 2 |
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)); } |