[K2] Save inlined java field into special InlineConstTracker

This commit is contained in:
Ivan Kylchik
2023-05-23 12:17:37 +02:00
committed by Space Team
parent 39242e517e
commit 0021a5f655
17 changed files with 72 additions and 31 deletions
@@ -26,10 +26,14 @@ class ConstEvaluationLowering(
) : FileLoweringPass {
private val interpreter = IrInterpreter(IrInterpreterEnvironment(context.irBuiltIns, configuration), emptyMap())
private val evaluatedConstTracker = context.configuration[CommonConfigurationKeys.EVALUATED_CONST_TRACKER]
private val inlineConstTracker = context.configuration[CommonConfigurationKeys.INLINE_CONST_TRACKER]
override fun lower(irFile: IrFile) {
irFile.transformConst(
interpreter, mode = EvaluationMode.ONLY_INTRINSIC_CONST, evaluatedConstTracker, onWarning, onError, suppressErrors
interpreter,
mode = EvaluationMode.ONLY_INTRINSIC_CONST,
evaluatedConstTracker, inlineConstTracker,
onWarning, onError, suppressErrors
)
}
}