mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
RegAlloc: Define constructors for HostLocInfo to make MSVC happy
This commit is contained in:
parent
a875c0c720
commit
1252bd653d
@ -39,7 +39,7 @@ Gen::X64Reg RegAlloc::DefRegister(IR::Inst* def_inst, HostLocList desired_locati
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update state
|
// Update state
|
||||||
LocInfo(location) = {def_inst, HostLocState::Def};
|
LocInfo(location) = HostLocInfo{def_inst, HostLocState::Def};
|
||||||
return HostLocToX64(location);
|
return HostLocToX64(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -141,6 +141,8 @@ private:
|
|||||||
Gen::XEmitter* code = nullptr;
|
Gen::XEmitter* code = nullptr;
|
||||||
|
|
||||||
struct HostLocInfo {
|
struct HostLocInfo {
|
||||||
|
HostLocInfo() = default;
|
||||||
|
HostLocInfo(IR::Inst* value, HostLocState state) : value(value), state(state) {}
|
||||||
IR::Inst* value = nullptr;
|
IR::Inst* value = nullptr;
|
||||||
HostLocState state = HostLocState::Idle;
|
HostLocState state = HostLocState::Idle;
|
||||||
IR::Type GetType() const {
|
IR::Type GetType() const {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user