Skip to content

Commit 565eeca

Browse files
aheejinmemfrob
authored and
memfrob
committed
[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 33dbd62 commit 565eeca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td

+1-1
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)