mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
SPULLVMRecompiler: remove unnecessary bitcast
This commit is contained in:
parent
e67d090c35
commit
42751cc8fb
1 changed files with 1 additions and 3 deletions
|
@ -543,9 +543,7 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
|
||||||
template <typename T = u8>
|
template <typename T = u8>
|
||||||
llvm::Value* _ptr(llvm::Value* base, llvm::Value* offset)
|
llvm::Value* _ptr(llvm::Value* base, llvm::Value* offset)
|
||||||
{
|
{
|
||||||
const auto off = m_ir->CreateGEP(get_type<u8>(), base, offset);
|
return m_ir->CreateGEP(get_type<u8>(), base, offset);
|
||||||
const auto ptr = m_ir->CreateBitCast(off, get_type<T*>());
|
|
||||||
return ptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, typename... Args>
|
template <typename T, typename... Args>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue