JVM IR: Avoid patchDeclarationParents after inlining

The code in IrInlineUtils.kt already updates declaration parents.
This commit is contained in:
Steven Schäfer
2022-06-10 14:17:42 +02:00
committed by Alexander Udalov
parent a18ac2ac91
commit f0238766df
2 changed files with 2 additions and 7 deletions
@@ -86,9 +86,7 @@ private class ArrayConstructorTransformer(
+irCall(result.type.getClass()!!.functions.single { it.name == OperatorNameConventions.SET }).apply {
dispatchReceiver = irGet(result)
putValueArgument(0, irGet(tempIndex))
val inlined = generator
.inline(parent, listOf(tempIndex))
.patchDeclarationParents(scope.getLocalDeclarationParent())
val inlined = generator.inline(parent, listOf(tempIndex))
putValueArgument(1, inlined)
}
val inc = index.type.getClass()!!.functions.single { it.name == OperatorNameConventions.INC }