RegAlloc: Define constructors for HostLocInfo to make MSVC happy
This commit is contained in:
parent
a875c0c720
commit
1252bd653d
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue