mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
do two passes in MyCompiler::initLocalsFromLogicalIp in order to properly link multiword values together
This commit is contained in:
parent
661b49ea92
commit
14c6deb710
@ -5063,10 +5063,15 @@ class MyCompiler: public Compiler {
|
||||
Local* local = e->localsBefore + i;
|
||||
if (local->value) {
|
||||
initLocal(1, i);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < static_cast<int>(c.localFootprint); ++i) {
|
||||
Local* local = e->localsBefore + i;
|
||||
if (local->value) {
|
||||
int highOffset = c.arch->bigEndian() ? 1 : -1;
|
||||
|
||||
if (i + highOffset > 0
|
||||
if (i + highOffset >= 0
|
||||
and i + highOffset < static_cast<int>(c.localFootprint)
|
||||
and local->value->high == local[highOffset].value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user