mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 03:18:55 +02:00
[dynarmic] fix GCC 12.2 complaints for regalloc.h (#3812)
Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3812 Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
bcceced96d
commit
cae70c30fa
2 changed files with 3 additions and 3 deletions
|
|
@ -316,8 +316,8 @@ int RegAlloc::RealizeReadImpl(const IR::Value& value) {
|
||||||
return current_location->index;
|
return current_location->index;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(!ValueInfo(*current_location).realized);
|
ASSERT(!bool(ValueInfo(*current_location).realized));
|
||||||
ASSERT(ValueInfo(*current_location).locked);
|
ASSERT(bool(ValueInfo(*current_location).locked));
|
||||||
|
|
||||||
if constexpr (required_kind == HostLoc::Kind::Gpr) {
|
if constexpr (required_kind == HostLoc::Kind::Gpr) {
|
||||||
const int new_location_index = AllocateRegister(gprs, gpr_order);
|
const int new_location_index = AllocateRegister(gprs, gpr_order);
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ public:
|
||||||
}
|
}
|
||||||
inline void ReadLock() noexcept {
|
inline void ReadLock() noexcept {
|
||||||
ASSERT(size_t(is_being_used_count) + 1 < (std::numeric_limits<decltype(is_being_used_count)>::max)());
|
ASSERT(size_t(is_being_used_count) + 1 < (std::numeric_limits<decltype(is_being_used_count)>::max)());
|
||||||
ASSERT(!is_scratch);
|
ASSERT(!bool(is_scratch));
|
||||||
is_being_used_count++;
|
is_being_used_count++;
|
||||||
}
|
}
|
||||||
inline void WriteLock() noexcept {
|
inline void WriteLock() noexcept {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue