IR: Fix scope transparency in ReturnableBlockLowering
An IrReturnableBlock introduces a new variable scope and shouldn't be replaced with a transparent IrComposite block.
This commit is contained in:
committed by
Alexander Udalov
parent
b93c000250
commit
6f0ff6aeb0
+1
-1
@@ -127,7 +127,7 @@ class ReturnableBlockTransformer(val context: CommonBackendContext, val containe
|
||||
returnMap.remove(expression.symbol)
|
||||
|
||||
if (!hasReturned) {
|
||||
return IrCompositeImpl(
|
||||
return IrBlockImpl(
|
||||
expression.startOffset,
|
||||
expression.endOffset,
|
||||
expression.type,
|
||||
|
||||
Reference in New Issue
Block a user