summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ir/eh-utils.cpp2
-rw-r--r--src/tools/fuzzing/fuzzing.cpp2
2 files changed, 2 insertions, 2 deletions
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<Try>()) {
+ } else if (firstChild->is<Try>() || firstChild->is<TryTable>()) {
isPopNested = true;
} else {
WASM_UNREACHABLE("Unexpected control flow expression");
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp
index c1625d726..701822452 100644
--- a/src/tools/fuzzing/fuzzing.cpp
+++ b/src/tools/fuzzing/fuzzing.cpp
@@ -2456,7 +2456,7 @@ Expression* TranslateToFuzzReader::makeBasicRef(Type type) {
return builder.makeArrayNewFixed(trivialArray, {});
}
case HeapType::exn: {
- auto null = builder.makeRefNull(HeapType::ext);
+ auto null = builder.makeRefNull(HeapType::exn);
if (!type.isNullable()) {
assert(funcContext);
return builder.makeRefAs(RefAsNonNull, null);