Skip to content

Commit

Permalink
SPULLVMRecompiler: remove unnecessary bitcast
Browse files Browse the repository at this point in the history
  • Loading branch information
oltolm authored and elad335 committed Nov 1, 2024
1 parent e67d090 commit 42751cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpcs3/Emu/Cell/SPULLVMRecompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
template <typename T = u8>
llvm::Value* _ptr(llvm::Value* base, llvm::Value* offset)
{
const auto off = m_ir->CreateGEP(get_type<u8>(), base, offset);
const auto ptr = m_ir->CreateBitCast(off, get_type<T*>());
return ptr;
return m_ir->CreateGEP(get_type<u8>(), base, offset);
}

template <typename T, typename... Args>
Expand Down

0 comments on commit 42751cc

Please sign in to comment.