From 9e4b2b78e6b03eab5bb1389c4a6301342693af78 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Mon, 16 Jan 2023 22:20:39 +0100 Subject: [PATCH] [Wasm] Remove unnecessary location from WasmDataMode constructor --- wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/Declarations.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/Declarations.kt b/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/Declarations.kt index 0676ed6c44c..8eb805cd8e9 100644 --- a/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/Declarations.kt +++ b/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/Declarations.kt @@ -65,8 +65,8 @@ sealed class WasmDataMode { val memoryIdx: Int, val offset: MutableList ) : WasmDataMode() { - constructor(memoryIdx: Int, offset: Int, location: SourceLocation) : this(memoryIdx, mutableListOf().also> { - WasmIrExpressionBuilder(it).buildConstI32(offset, location) + constructor(memoryIdx: Int, offset: Int) : this(memoryIdx, mutableListOf().also> { + WasmIrExpressionBuilder(it).buildConstI32(offset, SourceLocation.NoLocation("Offset value for WasmDataMode.Active ")) }) }