package org.jetbrains.kotlin.backend.konan.ir

import org.jetbrains.kotlin.descriptors.VariableDescriptor
import org.jetbrains.kotlin.ir.builders.*
import org.jetbrains.kotlin.ir.expressions.IrExpression

inline fun IrBlockBuilder.irLetSequence(
        value: IrExpression,
        nameHint: String? = null,
        body: IrBlockBuilder.(VariableDescriptor) -> Unit
): IrExpression  = block {
    val irTemporary = defineTemporary(value, nameHint)
    this.body(irTemporary)
}

Add IrLetSequence extension for IrBlockBuilder
backend: Add IrLetSequence extension for IrBlockBuilder

wiltonlazary/kotlin-native,jiaminglu/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,wiltonlazary/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native