Calculate function scope once for all declarations inside
This commit is contained in:
committed by
LepilkinaElena
parent
b1ca713940
commit
4e34b4fcc6
+1
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user