From 42751cc8fb9866bfffd08bd0242da24f820bbab1 Mon Sep 17 00:00:00 2001 From: oltolm Date: Fri, 6 Sep 2024 00:32:05 +0200 Subject: [PATCH] SPULLVMRecompiler: remove unnecessary bitcast --- rpcs3/Emu/Cell/SPULLVMRecompiler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp index 5c385c2238f3..0472acdf4422 100644 --- a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp @@ -543,9 +543,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator template llvm::Value* _ptr(llvm::Value* base, llvm::Value* offset) { - const auto off = m_ir->CreateGEP(get_type(), base, offset); - const auto ptr = m_ir->CreateBitCast(off, get_type()); - return ptr; + return m_ir->CreateGEP(get_type(), base, offset); } template