JVM IR: do not optimize properties with -Xno-optimized-callable-references

#KT-50019 Fixed
This commit is contained in:
Alexander Udalov
2021-12-07 00:41:47 +01:00
parent f47a3a3d1c
commit 1471602c9f
9 changed files with 51 additions and 0 deletions
@@ -35,6 +35,7 @@ internal val propertyReferenceDelegationPhase = makeIrFilePhase(
private class PropertyReferenceDelegationLowering(val context: JvmBackendContext) : FileLoweringPass {
override fun lower(irFile: IrFile) {
if (!context.state.generateOptimizedCallableReferenceSuperClasses) return
irFile.transform(PropertyReferenceDelegationTransformer(context), null)
}
}