diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-03-24 23:37:44 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:24 +0200 |
commit | d3dad6b6320f680b4e85ab991941d15cbce0e616 (patch) | |
tree | ee4bd8ef135827a4516950ad2421bf77f6f86a0e /src/shader_recompiler/frontend | |
parent | shader: Minor style nits (diff) | |
download | yuzu-d3dad6b6320f680b4e85ab991941d15cbce0e616.tar yuzu-d3dad6b6320f680b4e85ab991941d15cbce0e616.tar.gz yuzu-d3dad6b6320f680b4e85ab991941d15cbce0e616.tar.bz2 yuzu-d3dad6b6320f680b4e85ab991941d15cbce0e616.tar.lz yuzu-d3dad6b6320f680b4e85ab991941d15cbce0e616.tar.xz yuzu-d3dad6b6320f680b4e85ab991941d15cbce0e616.tar.zst yuzu-d3dad6b6320f680b4e85ab991941d15cbce0e616.zip |
Diffstat (limited to 'src/shader_recompiler/frontend')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp index fdac1c95a..79e344986 100644 --- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp +++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp @@ -635,7 +635,8 @@ public: block_list{block_list_} { Visit(root_stmt, nullptr, nullptr); - IR::IREmitter ir{*block_list.front()}; + IR::Block& first_block{*block_list.front()}; + IR::IREmitter ir{first_block, first_block.begin()}; ir.Prologue(); } |