mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-10 08:54:11 -08:00
Fix compiler crash when there's no method found during DCE
This commit is contained in:
parent
5c436c3391
commit
c224c57f98
|
@ -615,10 +615,10 @@ class DependencyGraphBuilder {
|
||||||
CallLocation callLocation = new CallLocation(caller.getMethod(), currentLocation);
|
CallLocation callLocation = new CallLocation(caller.getMethod(), currentLocation);
|
||||||
dependencyChecker.linkClass(method.getClassName(), callLocation).initClass(callLocation);
|
dependencyChecker.linkClass(method.getClassName(), callLocation).initClass(callLocation);
|
||||||
MethodDependency methodDep = dependencyChecker.linkMethod(method, callLocation);
|
MethodDependency methodDep = dependencyChecker.linkMethod(method, callLocation);
|
||||||
|
methodDep.use();
|
||||||
if (methodDep.isMissing()) {
|
if (methodDep.isMissing()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
methodDep.use();
|
|
||||||
DependencyNode[] targetParams = methodDep.getVariables();
|
DependencyNode[] targetParams = methodDep.getVariables();
|
||||||
for (int i = 0; i < arguments.size(); ++i) {
|
for (int i = 0; i < arguments.size(); ++i) {
|
||||||
DependencyNode value = nodes[arguments.get(i).getIndex()];
|
DependencyNode value = nodes[arguments.get(i).getIndex()];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user