Commit f328c0de authored by Sebastian Biewer's avatar Sebastian Biewer

Fixes cpw 31 and redmine 244

parent 696bcd13
......@@ -448,10 +448,10 @@ PC.SelectStmt::compile = (compiler, loopEntry) ->
@prepareSendReceive(compiler) # evaluate right / left&right operand(s) of receive/send operator
for i in [0...@children.length-1] by 1
control = compiler.emitChoice()
breaks.concat(compiler.compile(@children[i], loopEntry))
breaks = breaks.concat(compiler.compile(@children[i], loopEntry))
placeholders.push(compiler.emitProcessApplicationPlaceholder())
control.setBranchFinished()
breaks.concat(compiler.compile(@children[@children.length-1], loopEntry))
breaks = breaks.concat(compiler.compile(@children[@children.length-1], loopEntry))
placeholders.push(compiler.emitProcessApplicationPlaceholder())
compiler.emitMergeOfProcessFramesOfPlaceholders(placeholders)
compiler.closeEnvironment()
......@@ -470,7 +470,8 @@ PC.Case::compile = (compiler, loopEntry) ->
compiler.compile(cond)
else
compiler.emitSimplePrefix(CCS.internalChannelName)
compiler.compile(@getExecution(), loopEntry)
res = compiler.compile(@getExecution(), loopEntry)
res
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment