Skip to content

Commit 5f532d5

Browse files
committed
EndTryTable does not need to local_ref_is_set_
1 parent ade2a41 commit 5f532d5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/shared-validator.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,6 @@ Result SharedValidator::EndTryTable(const Location& loc, Type sig_type) {
14471447
TypeVector param_types, result_types;
14481448
result |= CheckBlockSignature(loc, Opcode::TryTable, sig_type, &param_types,
14491449
&result_types);
1450-
RestoreLocalRefs(result);
14511450
result |= typechecker_.EndTryTable(param_types, result_types);
14521451
return result;
14531452
}

test/regress/regress-2670.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
(module
99
(func (local (ref func)))
10+
(func
11+
try_table
12+
end)
1013
(func
1114
unreachable
1215
try_table
@@ -18,6 +21,9 @@
1821
(func $f0 (type $t0)
1922
(local $l0 (ref func)))
2023
(func $f1 (type $t0)
24+
(try_table $T0
25+
))
26+
(func $f2 (type $t0)
2127
(unreachable)
2228
(try_table $T0
2329
)))

0 commit comments

Comments
 (0)