WASM: Canonicalize catches without finally blocks

This commit is contained in:
Igor Laevsky
2021-08-20 14:37:36 +03:00
committed by TeamCityServer
parent 02aed80e18
commit d99473fe4d
7 changed files with 115 additions and 6 deletions
@@ -336,6 +336,9 @@ fun IrBuilderWithScope.irVararg(elementType: IrType, values: List<IrExpression>)
fun IrBuilderWithScope.irRawFunctionReferefence(type: IrType, symbol: IrFunctionSymbol) =
IrRawFunctionReferenceImpl(startOffset, endOffset, type, symbol)
fun IrBuilderWithScope.irTry(type: IrType, tryResult: IrExpression, catches: List<IrCatch>, finallyExpression: IrExpression?) =
IrTryImpl(startOffset, endOffset, type, tryResult, catches, finallyExpression)
inline fun IrBuilderWithScope.irBlock(
startOffset: Int = this.startOffset,
endOffset: Int = this.endOffset,