This commit is contained in:
Valentin Kipyatkov
2020-04-12 23:46:45 +03:00
parent 9624f8afa3
commit bf79c3f279
@@ -177,7 +177,6 @@ class OutflowSlicer(
if (function.isImplicitInvokeFunction()) { if (function.isImplicitInvokeFunction()) {
val receiverPseudoValue = instruction.receiverValues.entries.singleOrNull()?.key val receiverPseudoValue = instruction.receiverValues.entries.singleOrNull()?.key
?: return@processPseudocodeUsages ?: return@processPseudocodeUsages
if (receiverPseudoValue.createdAt != null) {
when (val createdAt = receiverPseudoValue.createdAt) { when (val createdAt = receiverPseudoValue.createdAt) {
is ReadValueInstruction -> { is ReadValueInstruction -> {
val accessedDescriptor = createdAt.target.accessedDescriptor ?: return@processPseudocodeUsages val accessedDescriptor = createdAt.target.accessedDescriptor ?: return@processPseudocodeUsages
@@ -198,7 +197,6 @@ class OutflowSlicer(
} }
} }
} }
}
is ReturnValueInstruction -> { is ReturnValueInstruction -> {
val subroutine = instruction.subroutine val subroutine = instruction.subroutine