Fix compiler crash when there's no method found during DCE

This commit is contained in:
Alexey Andreev 2017-10-26 15:50:46 +03:00
parent 5c436c3391
commit c224c57f98

View File

@ -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()];