From a5f3164c38fe7be5418b6949682a27fa6377800f Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 24 Jul 2022 21:01:43 +0100 Subject: [PATCH] backend/arm64/reg_alloc: Handle immediates in DefineAsExisting --- src/dynarmic/backend/arm64/reg_alloc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dynarmic/backend/arm64/reg_alloc.cpp b/src/dynarmic/backend/arm64/reg_alloc.cpp index 0e7126b0..c54c3d10 100644 --- a/src/dynarmic/backend/arm64/reg_alloc.cpp +++ b/src/dynarmic/backend/arm64/reg_alloc.cpp @@ -177,6 +177,11 @@ void RegAlloc::PrepareForCall(IR::Inst* result, std::optionalReplaceUsesWith(arg.value); + return; + } + ASSERT(!ValueLocation(inst)); auto& info = ValueInfo(arg.value.GetInst()); info.values.emplace_back(inst);