JVM_IR: double call to adjustDefaultArgumentStubs

This commit is contained in:
Georgy Bronnikov
2021-08-09 17:03:49 +03:00
committed by TeamCityServer
parent a7460e9061
commit 07eef9b751

View File

@@ -121,8 +121,12 @@ private class PerformByIrFilePhase<Context : CommonBackendContext>(
input.files.clear()
input.files.addAll(filesAndStates.map { (irFile, _) -> irFile }.toMutableList())
// Some remappers in handleDeepCopy depend on entries in remappedFunctions inserted by adjustDefaultArgumentStubs.
adjustDefaultArgumentStubs(context, remappedFunctions)
context.handleDeepCopy(remappedFiles, remappedClasses, remappedFunctions)
// and some entries in adjustDefaultArgumentStubs depend on those inserted by handleDeepCopy, so we need to repeat the call.
adjustDefaultArgumentStubs(context, remappedFunctions)
input.transformChildrenVoid(CrossFileCallAdjuster(remappedFunctions))
}