Skip to content

Commit 5901df8

Browse files
aheejinKyvangka1610
authored andcommitted
[WebAssembly] Change catch_all's opcode
We decided to change `catch_all`'s opcode from 0x05, which is the same as `else`, to 0x19, to avoid some complicated handling in the tools. See: WebAssembly/exception-handling#147 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D96863
1 parent a30b7d7 commit 5901df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ defm CATCH : I<(outs I32:$dst), (ins event_op:$tag),
153153
[(set I32:$dst,
154154
(WebAssemblycatch (WebAssemblywrapper texternalsym:$tag)))],
155155
"catch \t$dst, $tag", "catch \t$tag", 0x07>;
156-
defm CATCH_ALL : NRI<(outs), (ins), [], "catch_all", 0x05>;
156+
defm CATCH_ALL : NRI<(outs), (ins), [], "catch_all", 0x19>;
157157
}
158158

159159
// Delegating an exception: delegate

0 commit comments

Comments
 (0)