From ec4051c872e140ffb3b779b848e008ba43862050 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 19 May 2026 17:59:41 -0700 Subject: [PATCH] Run non-nullable local fixups when reducing functions It's not entirely clear how FunctionReplacer was producing IR that with invalid nullable locals, but this was observed in practice in issue #8720. Fix it by running the non-nullable local fixups after the pass. Fixes #8720. --- src/tools/wasm-reduce/wasm-reduce.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tools/wasm-reduce/wasm-reduce.cpp b/src/tools/wasm-reduce/wasm-reduce.cpp index 04676109acf..0dd8e0dda99 100644 --- a/src/tools/wasm-reduce/wasm-reduce.cpp +++ b/src/tools/wasm-reduce/wasm-reduce.cpp @@ -1089,7 +1089,6 @@ struct Reducer struct FunctionReplacer : public WalkerPass> { bool isFunctionParallel() override { return true; } - bool requiresNonNullableLocalFixups() override { return false; } std::unique_ptr create() override { return std::make_unique(); };