mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-10 16:14:29 +00:00
SPU LLVM: fix jt target duplication bug
This commit is contained in:
parent
a999bccc03
commit
8ad05ce10e
@ -3979,10 +3979,16 @@ public:
|
||||
{
|
||||
if (m_block_info[target / 4])
|
||||
{
|
||||
targets.emplace(target, add_block(target));
|
||||
targets.emplace(target, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize target basic blocks
|
||||
for (auto& pair : targets)
|
||||
{
|
||||
pair.second = add_block(pair.first);
|
||||
}
|
||||
|
||||
// Get jump table bounds (optimization)
|
||||
const u32 start = targets.begin()->first;
|
||||
const u32 end = targets.rbegin()->first + 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user