summaryrefslogtreecommitdiff
path: root/src/wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-06-01 12:34:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-06-01 12:34:17 -0700
commitee909d82d0e5f7f11d280df44b4c27f15eae0404 (patch)
tree7bc7b028a25adce6cf25eeb0f248f61200549379 /src/wasm.cpp
parentdb2ae40be2c52c0821da355285384aa0db8fc948 (diff)
parentf740552daa7c717f3cc0c3c266fa84549b0f203d (diff)
downloadbinaryen-ee909d82d0e5f7f11d280df44b4c27f15eae0404.tar.gz
binaryen-ee909d82d0e5f7f11d280df44b4c27f15eae0404.tar.bz2
binaryen-ee909d82d0e5f7f11d280df44b4c27f15eae0404.zip
Merge pull request #555 from WebAssembly/spec-test-fixes
Spec test fixes
Diffstat (limited to 'src/wasm.cpp')
-rw-r--r--src/wasm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm.cpp b/src/wasm.cpp
index d00ddd42f..48a0f276a 100644
--- a/src/wasm.cpp
+++ b/src/wasm.cpp
@@ -40,6 +40,7 @@ struct TypeSeeker : public PostWalker<TypeSeeker, Visitor<TypeSeeker>> {
for (auto name : curr->targets) {
if (name == targetName) types.push_back(curr->value ? curr->value->type : none);
}
+ if (curr->default_ == targetName) types.push_back(curr->value ? curr->value->type : none);
}
void visitBlock(Block* curr) {