From 8e938268f9ea9c0b19466771713f6aae4e639eb1 Mon Sep 17 00:00:00 2001 From: Lander Gallastegi Date: Tue, 8 Apr 2025 00:15:08 +0200 Subject: [PATCH] Correctly initialize Address --- src/shader_recompiler/backend/asm_x64/x64_emit_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shader_recompiler/backend/asm_x64/x64_emit_context.cpp b/src/shader_recompiler/backend/asm_x64/x64_emit_context.cpp index 7d8449f53..dfb7094c3 100644 --- a/src/shader_recompiler/backend/asm_x64/x64_emit_context.cpp +++ b/src/shader_recompiler/backend/asm_x64/x64_emit_context.cpp @@ -165,7 +165,7 @@ void EmitContext::Epilogue() { void EmitContext::SpillInst(RegAllocContext& ctx, const ActiveInstInterval& interval, ActiveIntervalList& active_intervals) { - const auto get_operand = [&](IR::Inst* inst) -> Operand { + const auto get_operand = [&](IR::Inst* inst) -> Address { size_t current_sp = inst_stack_space; inst_stack_space += 8; switch (GetRegBytesOfType(IR::Value(inst))) { @@ -179,7 +179,7 @@ void EmitContext::SpillInst(RegAllocContext& ctx, const ActiveInstInterval& inte return qword[r11 + current_sp]; default: UNREACHABLE_MSG("Unsupported register size: {}", GetRegBytesOfType(inst)); - return {}; + return ptr[r11 + current_sp]; } }; auto spill_candidate = std::max_element(