Calculate function scope once for all declarations inside

This commit is contained in:
Elena Lepilkina
2020-01-22 12:25:20 +03:00
committed by LepilkinaElena
parent b1ca713940
commit 4e34b4fcc6
@@ -1691,8 +1691,7 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map<IrE
var bbExit : LLVMBasicBlockRef? = null
var resultPhi : LLVMValueRef? = null
private val functionScope: DIScopeOpaqueRef?
get() = returnableBlock.inlineFunctionSymbol?.owner?.scope()
private val functionScope by lazy { returnableBlock.inlineFunctionSymbol?.owner?.scope() }
private val outerScope = currentCodeContext.scope()
private fun getExit(): LLVMBasicBlockRef {