diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-03-30 03:13:37 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1 (patch) | |
tree | 434c9473dafdf0a2b54e8f6d662141da71560005 /src/shader_recompiler/frontend/maxwell/control_flow.cpp | |
parent | spirv: Fix default output attribute initialization (diff) | |
download | yuzu-b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1.tar yuzu-b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1.tar.gz yuzu-b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1.tar.bz2 yuzu-b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1.tar.lz yuzu-b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1.tar.xz yuzu-b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1.tar.zst yuzu-b0d5572abfe1f14e02d8219f0a4d7dd09ff36fd1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/control_flow.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.cpp b/src/shader_recompiler/frontend/maxwell/control_flow.cpp index 1e9b8e426..784f9df8a 100644 --- a/src/shader_recompiler/frontend/maxwell/control_flow.cpp +++ b/src/shader_recompiler/frontend/maxwell/control_flow.cpp @@ -434,7 +434,10 @@ CFG::AnalysisState CFG::AnalyzeBRX(Block* block, Location pc, Instruction inst, block->indirect_branches.reserve(targets.size()); for (const u32 target : targets) { Block* const branch{AddLabel(block, block->stack, target, function_id)}; - block->indirect_branches.push_back(branch); + block->indirect_branches.push_back({ + .block{branch}, + .address{target}, + }); } block->cond = IR::Condition{true}; block->end = pc + 1; @@ -530,8 +533,8 @@ std::string CFG::Dot() const { } break; case EndClass::IndirectBranch: - for (Block* const branch : block.indirect_branches) { - add_branch(branch, false); + for (const IndirectBranch& branch : block.indirect_branches) { + add_branch(branch.block, false); } break; case EndClass::Call: |