mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 13:44:31 +01:00
basic_block: Fix bogus GCC maybe-uninitialized warning
This commit is contained in:
parent
1fb0957aa3
commit
47661b746b
3 changed files with 3 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ restart:
|
|||
bool should_continue = A64::TranslateSingleInstruction(block, location, instruction);
|
||||
if (!should_continue && !is_last_inst)
|
||||
goto restart;
|
||||
if (!should_continue && boost::get<IR::Term::Interpret>(&block.GetTerminal()))
|
||||
if (auto terminal = block.GetTerminal(); boost::get<IR::Term::Interpret>(&terminal))
|
||||
goto restart;
|
||||
for (const auto& ir_inst : block)
|
||||
if (ir_inst.GetOpcode() == IR::Opcode::A64ExceptionRaised || ir_inst.GetOpcode() == IR::Opcode::A64CallSupervisor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue