From 23c23fbca36a86bd85734487a41e1f9a9857b8fe Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 31 Jul 2022 08:50:27 +0100 Subject: [PATCH] arm64/reg_alloc: Bugfix in ValueInfo --- src/dynarmic/backend/arm64/reg_alloc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dynarmic/backend/arm64/reg_alloc.cpp b/src/dynarmic/backend/arm64/reg_alloc.cpp index 686fd2f5..3355418e 100644 --- a/src/dynarmic/backend/arm64/reg_alloc.cpp +++ b/src/dynarmic/backend/arm64/reg_alloc.cpp @@ -489,13 +489,13 @@ HostLocInfo& RegAlloc::ValueInfo(const IR::Inst* value) { if (const auto iter = std::find_if(gprs.begin(), gprs.end(), contains_value); iter != gprs.end()) { return *iter; } - if (const auto iter = std::find_if(fprs.begin(), fprs.end(), contains_value); iter != gprs.end()) { + if (const auto iter = std::find_if(fprs.begin(), fprs.end(), contains_value); iter != fprs.end()) { return *iter; } if (contains_value(flags)) { return flags; } - if (const auto iter = std::find_if(spills.begin(), spills.end(), contains_value); iter != gprs.end()) { + if (const auto iter = std::find_if(spills.begin(), spills.end(), contains_value); iter != spills.end()) { return *iter; } ASSERT_FALSE("RegAlloc::ValueInfo: Value not found");