diff options
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index b137044b2..b71f7d854 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -219,7 +219,7 @@ struct TypeSeeker : public PostWalker<TypeSeeker> { void visitBrOnExn(BrOnExn* curr) { if (curr->name == targetName) { - types.push_back(curr->getSingleSentType()); + types.push_back(curr->sent); } } @@ -924,16 +924,6 @@ void BrOnExn::finalize() { } } -// br_on_exn's type is exnref, which it pushes onto the stack when it is not -// taken, but the type of the value it pushes onto the stack when it is taken -// should be the event type. So this is the type we 'send' to the block end when -// it is taken. Currently we don't support multi value return from a block, we -// pick the type of the first param from the event. -// TODO Remove this function and generalize event type after multi-value support -Type BrOnExn::getSingleSentType() { - return eventParams.empty() ? none : eventParams.front(); -} - void Push::finalize() { if (value->type == unreachable) { type = unreachable; |