mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 07:22:24 +00:00
Correctly initialize Address
This commit is contained in:
parent
ab158fd4d7
commit
8e938268f9
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user