From 3c779e20be9870d4985763b6fbe8d85e17827353 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 7 Mar 2024 08:20:19 -0800 Subject: Fix EH fuzz bugs (#6381) Due to a typo, the fuzzer was making externrefs when it should have been making exnrefs. Fix that and also let eh-utils.cpp know that TryTable exists to avoid an assertion failure. --- src/ir/eh-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir/eh-utils.cpp') diff --git a/src/ir/eh-utils.cpp b/src/ir/eh-utils.cpp index f9cd2d940..70b5452a6 100644 --- a/src/ir/eh-utils.cpp +++ b/src/ir/eh-utils.cpp @@ -84,7 +84,7 @@ getFirstPop(Expression* catchBody, bool& isPopNested, Expression**& popPtr) { } else { isPopNested = true; } - } else if (firstChild->is()) { + } else if (firstChild->is() || firstChild->is()) { isPopNested = true; } else { WASM_UNREACHABLE("Unexpected control flow expression"); -- cgit v1.2.3