FIR-DFA: Ignore FinallyBlockExitNode when computing return arguments
This commit is contained in:
committed by
teamcityserver
parent
d0a0739d10
commit
35c754c27c
+1
-1
@@ -133,7 +133,7 @@ class ControlFlowGraphBuilder {
|
||||
}
|
||||
|
||||
fun CFGNode<*>.extractArgument(): FirElement? = when (this) {
|
||||
is FunctionEnterNode, is TryMainBlockEnterNode, is CatchClauseEnterNode -> null
|
||||
is FunctionEnterNode, is TryMainBlockEnterNode, is FinallyBlockExitNode, is CatchClauseEnterNode -> null
|
||||
is StubNode, is BlockExitNode -> firstPreviousNode.extractArgument()
|
||||
else -> fir.extractArgument()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user