SPU LLVM: fix regression from #13500

Fixes #13526
This commit is contained in:
Ivan Chikish 2023-03-11 18:18:48 +03:00 committed by Ivan
parent 520524285a
commit 776b3b5efa

View File

@ -9930,8 +9930,8 @@ public:
m_ir->SetInsertPoint(done);
const auto ad64 = m_ir->CreateZExt(ad32, get_type<u64>());
const auto pptr = m_ir->CreateGEP(get_type<u8>(), m_function_table, {m_ir->getInt64(0), m_ir->CreateLShr(ad64, 2, "", true)});
tail_chunk({m_dispatch->getFunctionType(), m_ir->CreateLoad(get_type<u8*>(), pptr)});
const auto pptr = m_ir->CreateGEP(m_function_table->getValueType(), m_function_table, {m_ir->getInt64(0), m_ir->CreateLShr(ad64, 2, "", true)});
tail_chunk({m_dispatch->getFunctionType(), m_ir->CreateLoad(pptr->getType()->getPointerElementType(), pptr)});
m_ir->SetInsertPoint(fail);
}