diff --git a/src/ir_opt/get_set_elimination_pass.cpp b/src/ir_opt/get_set_elimination_pass.cpp index 98ec2b5b..a1a5552a 100644 --- a/src/ir_opt/get_set_elimination_pass.cpp +++ b/src/ir_opt/get_set_elimination_pass.cpp @@ -16,7 +16,7 @@ namespace Dynarmic { namespace Optimization { void GetSetElimination(IR::Block& block) { - using Iterator = decltype(block.begin()); + using Iterator = IR::Block::iterator; struct RegisterInfo { IR::Value register_value; bool set_instruction_present = false;