backend/arm64/reg_alloc: Assert on bad RAReg
This commit is contained in:
parent
78bc0812b9
commit
8ac57bd6ed
1 changed files with 5 additions and 5 deletions
|
@ -85,18 +85,18 @@ public:
|
||||||
: HostLoc::Kind::Gpr
|
: HostLoc::Kind::Gpr
|
||||||
: HostLoc::Kind::Flags;
|
: HostLoc::Kind::Flags;
|
||||||
|
|
||||||
operator T() const { return *reg; }
|
operator T() const { return reg.value(); }
|
||||||
|
|
||||||
operator oaknut::WRegWsp() const requires(std::is_same_v<T, oaknut::WReg>) {
|
operator oaknut::WRegWsp() const requires(std::is_same_v<T, oaknut::WReg>) {
|
||||||
return *reg;
|
return reg.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
operator oaknut::XRegSp() const requires(std::is_same_v<T, oaknut::XReg>) {
|
operator oaknut::XRegSp() const requires(std::is_same_v<T, oaknut::XReg>) {
|
||||||
return *reg;
|
return reg.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
T operator*() const { return *reg; }
|
T operator*() const { return reg.value(); }
|
||||||
const T* operator->() const { return &*reg; }
|
const T* operator->() const { return ®.value(); }
|
||||||
|
|
||||||
~RAReg();
|
~RAReg();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue