RegAlloc: Define constructors for HostLocInfo to make MSVC happy

This commit is contained in:
MerryMage 2016-08-03 00:25:42 +01:00
parent a875c0c720
commit 1252bd653d
2 changed files with 3 additions and 1 deletions

View file

@ -39,7 +39,7 @@ Gen::X64Reg RegAlloc::DefRegister(IR::Inst* def_inst, HostLocList desired_locati
}
// Update state
LocInfo(location) = {def_inst, HostLocState::Def};
LocInfo(location) = HostLocInfo{def_inst, HostLocState::Def};
return HostLocToX64(location);
}

View file

@ -141,6 +141,8 @@ private:
Gen::XEmitter* code = nullptr;
struct HostLocInfo {
HostLocInfo() = default;
HostLocInfo(IR::Inst* value, HostLocState state) : value(value), state(state) {}
IR::Inst* value = nullptr;
HostLocState state = HostLocState::Idle;
IR::Type GetType() const {