IR: pass information about the declaration being lowered to the infrastructure
This commit is contained in:
committed by
teamcityserver
parent
5ee865437d
commit
002f4210f7
@@ -150,11 +150,14 @@ private class BodyLoweringVisitor(
|
|||||||
|
|
||||||
override fun visitBody(body: IrBody, data: IrDeclaration?) {
|
override fun visitBody(body: IrBody, data: IrDeclaration?) {
|
||||||
if (withLocalDeclarations) body.acceptChildren(this, null)
|
if (withLocalDeclarations) body.acceptChildren(this, null)
|
||||||
if (allowDeclarationModification) {
|
val stageController = data!!.factory.stageController
|
||||||
loweringPass.lower(body, data!!)
|
stageController.restrictTo(data) {
|
||||||
} else {
|
if (allowDeclarationModification) {
|
||||||
data!!.factory.stageController.bodyLowering {
|
|
||||||
loweringPass.lower(body, data)
|
loweringPass.lower(body, data)
|
||||||
|
} else {
|
||||||
|
stageController.bodyLowering {
|
||||||
|
loweringPass.lower(body, data)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user