C/Wasm: fix incorrect removal of GC root in optimizer

This commit is contained in:
Alexey Andreev 2020-01-22 17:16:44 +03:00
parent a35a10bbc6
commit 4776bebe8e

View File

@ -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;
}
}