mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
C/Wasm: fix incorrect removal of GC root in optimizer
This commit is contained in:
parent
a35a10bbc6
commit
4776bebe8e
|
@ -307,7 +307,7 @@ public class GCShadowStackContributor {
|
|||
}
|
||||
|
||||
for (int i = 0; i < newStates.length; ++i) {
|
||||
if (newStates[i] >= 0 && autoSpilled[newStates[i]]) {
|
||||
if (newStates[i] >= 0 && autoSpilled[definitionClasses[newStates[i]]]) {
|
||||
comparison[i] = -2;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user