summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-08-27 08:18:32 -0700
committerGitHub <noreply@github.com>2017-08-27 08:18:32 -0700
commit8c89a7baae740013b038865fc4e290439b91eb6f (patch)
tree5fe7c1b6d559040740ee8387efed0dbb6c0264b7 /src/wasm/wasm.cpp
parente60fcd0ba97ed75440c6f838619455be7a5e90a3 (diff)
parent9592b881bd1d17dfa24cfee5aea31f6f9d8312d5 (diff)
downloadbinaryen-8c89a7baae740013b038865fc4e290439b91eb6f.tar.gz
binaryen-8c89a7baae740013b038865fc4e290439b91eb6f.tar.bz2
binaryen-8c89a7baae740013b038865fc4e290439b91eb6f.zip
Merge pull request #1147 from WebAssembly/betterfuzz
Fuzzer improvements and some small fixes
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index f82a06e68..ab2db6bd5 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -332,6 +332,10 @@ void SetLocal::setTee(bool is) {
void SetLocal::finalize() {
if (value->type == unreachable) {
type = unreachable;
+ } else if (isTee()) {
+ type = value->type;
+ } else {
+ type = none;
}
}