From 98b3901f9c64727029b5b642a750301b6a07ecbf Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Mon, 26 Aug 2019 15:24:38 +0300 Subject: [PATCH] [FIR] Fix bug in building cfg for || --- .../kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt index 10433bd5622..330378cbe06 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt @@ -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++ } }