Skip to content

Commit 42751cc

Browse files
oltolmelad335
authored andcommitted
SPULLVMRecompiler: remove unnecessary bitcast
1 parent e67d090 commit 42751cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rpcs3/Emu/Cell/SPULLVMRecompiler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
543543
template <typename T = u8>
544544
llvm::Value* _ptr(llvm::Value* base, llvm::Value* offset)
545545
{
546-
const auto off = m_ir->CreateGEP(get_type<u8>(), base, offset);
547-
const auto ptr = m_ir->CreateBitCast(off, get_type<T*>());
548-
return ptr;
546+
return m_ir->CreateGEP(get_type<u8>(), base, offset);
549547
}
550548

551549
template <typename T, typename... Args>

0 commit comments

Comments
 (0)