Swap - copy DuplicateSourceItem

This commit is contained in:
Jindra Petřík
2025-09-01 19:57:24 +02:00
parent 189d58ab67
commit dd3020d7de

View File

@@ -149,6 +149,12 @@ public class SwapIns extends InstructionDefinition {
return;
}
if (o2 instanceof DuplicateSourceItem) {
stack.push(o1);
stack.push(o2);
return;
}
int temp = localData.maxTempIndex.getVal() + 1;
localData.maxTempIndex.setVal(temp);