mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
PPUTranslator minor changes
This commit is contained in:
parent
3a49a77c07
commit
3e7ed8a831
1 changed files with 3 additions and 3 deletions
|
@ -133,7 +133,7 @@ Function* PPUTranslator::Translate(const ppu_function& info)
|
|||
const u64 base = m_reloc ? m_reloc->addr : 0;
|
||||
m_addr = info.addr - base;
|
||||
|
||||
m_thread = &*m_function->getArgumentList().begin();
|
||||
m_thread = &*m_function->arg_begin();
|
||||
m_base_loaded = m_ir->CreateLoad(m_base);
|
||||
|
||||
m_body = BasicBlock::Create(m_context, "__body", m_function);
|
||||
|
@ -290,7 +290,7 @@ Value* PPUTranslator::RegInit(Value*& local)
|
|||
|
||||
Value* PPUTranslator::RegLoad(Value*& local)
|
||||
{
|
||||
const uint index = ::narrow<uint>(&local - m_locals);
|
||||
const auto index = ::narrow<uint>(&local - m_locals);
|
||||
|
||||
if (local)
|
||||
{
|
||||
|
@ -315,7 +315,7 @@ void PPUTranslator::FlushRegisters()
|
|||
|
||||
for (auto& local : m_locals)
|
||||
{
|
||||
const uint index = static_cast<uint>(&local - m_locals);
|
||||
const auto index = ::narrow<uint>(&local - m_locals);
|
||||
|
||||
// Store value if necessary
|
||||
if (local && m_globals[index])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue