summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-11-17 16:30:59 -0800
committerGitHub <noreply@github.com>2020-11-17 16:30:59 -0800
commit8b559e82156db94dc846830faa76071e58fe7d43 (patch)
tree3713d1e3f534b42ee493bd51aed9d9a9572fc749 /src
parent8cb7d3b341f4c907da9dfecc1054e5136f22c606 (diff)
downloadbinaryen-8b559e82156db94dc846830faa76071e58fe7d43.tar.gz
binaryen-8b559e82156db94dc846830faa76071e58fe7d43.tar.bz2
binaryen-8b559e82156db94dc846830faa76071e58fe7d43.zip
[Reducer] Don't error on compound types, just don't reduce them more for now (#3383)
Diffstat (limited to 'src')
-rw-r--r--src/tools/wasm-reduce.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index 82594cd25..f366eaddd 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -578,7 +578,10 @@ struct Reducer
continue; // no conversion
}
Expression* fixed = nullptr;
- TODO_SINGLE_COMPOUND(curr->type);
+ if (!curr->type.isBasic() || !child->type.isBasic()) {
+ // TODO: handle compound types
+ continue;
+ }
switch (curr->type.getBasic()) {
case Type::i32: {
TODO_SINGLE_COMPOUND(child->type);