mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -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);
|
||||
dependencyChecker.linkClass(method.getClassName(), callLocation).initClass(callLocation);
|
||||
MethodDependency methodDep = dependencyChecker.linkMethod(method, callLocation);
|
||||
methodDep.use();
|
||||
if (methodDep.isMissing()) {
|
||||
return;
|
||||
}
|
||||
methodDep.use();
|
||||
DependencyNode[] targetParams = methodDep.getVariables();
|
||||
for (int i = 0; i < arguments.size(); ++i) {
|
||||
DependencyNode value = nodes[arguments.get(i).getIndex()];
|
||||
|
|
Loading…
Reference in New Issue
Block a user