summaryrefslogtreecommitdiff
path: root/src/ir/ExpressionManipulator.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-11-25 15:46:56 -0800
committerGitHub <noreply@github.com>2019-11-25 15:46:56 -0800
commit8a70121a421204e05d020c67294e7e517c2d15d2 (patch)
treeda493f5ee5c8a3dfd18fba7518e05d25b1a71fba /src/ir/ExpressionManipulator.cpp
parentd90583cf509c3f21b3b5136d3872b097c5f2800c (diff)
downloadbinaryen-8a70121a421204e05d020c67294e7e517c2d15d2.tar.gz
binaryen-8a70121a421204e05d020c67294e7e517c2d15d2.tar.bz2
binaryen-8a70121a421204e05d020c67294e7e517c2d15d2.zip
Remove FunctionType from Event (#2466)
This is the start of a larger refactoring to remove FunctionType entirely and store types and signatures directly on the entities that use them. This PR updates BrOnExn and Events to remove their use of FunctionType and makes the BinaryWriter traverse the module and collect types rather than using the global FunctionType list. While we are collecting types, we also sort them by frequency as an optimization. Remaining uses of FunctionType in Function, CallIndirect, and parsing will be removed in a future PR.
Diffstat (limited to 'src/ir/ExpressionManipulator.cpp')
-rw-r--r--src/ir/ExpressionManipulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/ExpressionManipulator.cpp b/src/ir/ExpressionManipulator.cpp
index fdefbb2e0..2542e5743 100644
--- a/src/ir/ExpressionManipulator.cpp
+++ b/src/ir/ExpressionManipulator.cpp
@@ -242,7 +242,7 @@ flexibleCopy(Expression* original, Module& wasm, CustomCopier custom) {
}
Expression* visitBrOnExn(BrOnExn* curr) {
return builder.makeBrOnExn(
- curr->name, curr->event, copy(curr->exnref), curr->eventParams);
+ curr->name, curr->event, copy(curr->exnref), curr->sent);
}
Expression* visitNop(Nop* curr) { return builder.makeNop(); }
Expression* visitUnreachable(Unreachable* curr) {