mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
JVM_IR: double call to adjustDefaultArgumentStubs
This commit is contained in:
committed by
TeamCityServer
parent
a7460e9061
commit
07eef9b751
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user