mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-23 23:04:50 -08:00
Fix bug in devirtualization while inlining
This commit is contained in:
parent
4776bebe8e
commit
c53a563e96
|
@ -260,7 +260,11 @@ public class ClassInference {
|
||||||
|
|
||||||
if (degree > 0) {
|
if (degree > 0) {
|
||||||
for (int predecessor : assignmentGraph.incomingEdges(variable)) {
|
for (int predecessor : assignmentGraph.incomingEdges(variable)) {
|
||||||
nextEntries.add(packNodeAndDegree(predecessor, degree));
|
int predecessorEntry = packNodeAndDegree(predecessor, degree);
|
||||||
|
graphBuilder.addEdge(predecessorEntry, entry);
|
||||||
|
if (!visited[predecessorEntry]) {
|
||||||
|
stack.push(predecessorEntry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int successor : itemGraph.outgoingEdges(variable)) {
|
for (int successor : itemGraph.outgoingEdges(variable)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user