[FIR] Add enter contract node as exit for exceptional path to avoid compiler crashing
This fixes crashing test `FirDiagnosticsTestSpecGenerated.NotLinked.Contracts.Declarations.ContractBuilder.Common.Neg.test17`
This commit is contained in:
committed by
teamcityserver
parent
87380d1913
commit
15cc979378
+2
@@ -1137,11 +1137,13 @@ class ControlFlowGraphBuilder {
|
|||||||
|
|
||||||
return createContractDescriptionEnterNode().also {
|
return createContractDescriptionEnterNode().also {
|
||||||
lastNodes.push(it)
|
lastNodes.push(it)
|
||||||
|
exitTargetsForTry.push(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun exitContractDescription() {
|
fun exitContractDescription() {
|
||||||
lastNodes.pop()
|
lastNodes.pop()
|
||||||
|
exitTargetsForTry.pop()
|
||||||
popGraph()
|
popGraph()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user