summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
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-builder.h
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-builder.h')
-rw-r--r--src/wasm-builder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 4ef4b1e0b..7432562d1 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -164,14 +164,14 @@ public:
auto* ret = allocator.alloc<SetLocal>();
ret->index = index;
ret->value = value;
- ret->type = none;
+ ret->finalize();
return ret;
}
SetLocal* makeTeeLocal(Index index, Expression* value) {
auto* ret = allocator.alloc<SetLocal>();
ret->index = index;
ret->value = value;
- ret->type = value->type;
+ ret->setTee(true);
return ret;
}
GetGlobal* makeGetGlobal(Name name, WasmType type) {