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 bbExit : LLVMBasicBlockRef? = null
|
||||||
var resultPhi : LLVMValueRef? = null
|
var resultPhi : LLVMValueRef? = null
|
||||||
private val functionScope: DIScopeOpaqueRef?
|
private val functionScope by lazy { returnableBlock.inlineFunctionSymbol?.owner?.scope() }
|
||||||
get() = returnableBlock.inlineFunctionSymbol?.owner?.scope()
|
|
||||||
private val outerScope = currentCodeContext.scope()
|
private val outerScope = currentCodeContext.scope()
|
||||||
|
|
||||||
private fun getExit(): LLVMBasicBlockRef {
|
private fun getExit(): LLVMBasicBlockRef {
|
||||||
|
|||||||
Reference in New Issue
Block a user