From f57ade3a4b48042f76afebbefb52a4b10aa728cc Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Mon, 29 Jan 2024 12:50:50 -0800 Subject: [PATCH] fix --- src/wasm/wasm-ir-builder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp index 657f570051b..1eea777e01e 100644 --- a/src/wasm/wasm-ir-builder.cpp +++ b/src/wasm/wasm-ir-builder.cpp @@ -1055,6 +1055,7 @@ Result<> IRBuilder::makeLocalSet(Index local) { Result<> IRBuilder::makeLocalTee(Index local) { LocalSet curr; + curr.index = local; CHECK_ERR(visitLocalSet(&curr)); push(builder.makeLocalTee(local, curr.value, func->getLocalType(local))); return Ok{};