From 8ac57bd6ed245c6ec35725d9a2f7313ee47ed072 Mon Sep 17 00:00:00 2001 From: Merry Date: Sat, 23 Jul 2022 14:56:06 +0100 Subject: [PATCH] backend/arm64/reg_alloc: Assert on bad RAReg --- src/dynarmic/backend/arm64/reg_alloc.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dynarmic/backend/arm64/reg_alloc.h b/src/dynarmic/backend/arm64/reg_alloc.h index 4140f0fd..22bcd111 100644 --- a/src/dynarmic/backend/arm64/reg_alloc.h +++ b/src/dynarmic/backend/arm64/reg_alloc.h @@ -85,18 +85,18 @@ public: : HostLoc::Kind::Gpr : HostLoc::Kind::Flags; - operator T() const { return *reg; } + operator T() const { return reg.value(); } operator oaknut::WRegWsp() const requires(std::is_same_v) { - return *reg; + return reg.value(); } operator oaknut::XRegSp() const requires(std::is_same_v) { - return *reg; + return reg.value(); } - T operator*() const { return *reg; } - const T* operator->() const { return &*reg; } + T operator*() const { return reg.value(); } + const T* operator->() const { return ®.value(); } ~RAReg();