PPCRec: Some fixes

This commit is contained in:
Exzap 2024-10-19 02:11:26 +02:00
parent aa946ae42d
commit 4517c209d5
2 changed files with 10 additions and 4 deletions

View file

@ -133,9 +133,11 @@ void PPCRecRARange_addLink_perVirtualGPR(std::unordered_map<IMLRegID, raLiveness
else
{
// insert in first position
subrange->link_sameVirtualRegister.next = it->second;
raLivenessRange* priorFirst = it->second;
subrange->link_sameVirtualRegister.next = priorFirst;
it->second = subrange;
subrange->link_sameVirtualRegister.prev = subrange;
subrange->link_sameVirtualRegister.prev = nullptr;
priorFirst->link_sameVirtualRegister.prev = subrange;
}
}