[FIR] Fix bug in building cfg for ||

This commit is contained in:
Dmitriy Novozhilov
2019-08-26 15:24:38 +03:00
parent fc43c8a74b
commit 98b3901f9c
@@ -315,8 +315,6 @@ class ControlFlowGraphBuilder : ControlFlowGraphNodeBuilder() {
binaryOrExitNodes.push(createBinaryOrExitNode(binaryLogicExpression))
return createBinaryOrEnterNode(binaryLogicExpression).also {
addNewSimpleNode(it)
// put or enter node twice so we can refer it after exit from left argument
lastNodes.push(it)
}.also { levelCounter++ }
}