mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 03:54:45 +00:00
Correctly initialize Address
This commit is contained in:
parent
8a0fe21b4e
commit
09936bdd86
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue