diff options
author | JF Bastien <github@jfbastien.com> | 2016-02-05 14:14:10 +0100 |
---|---|---|
committer | JF Bastien <github@jfbastien.com> | 2016-02-05 14:14:10 +0100 |
commit | 9cfdb12d4976e4a9fbf6d902065904ffa48bdbec (patch) | |
tree | aae2c28eb1cc465a4582208d6c713584a51a1bcf /src/s2wasm.h | |
parent | 8f67b6e27a38c93fbca7f3c44a88889b3896952f (diff) | |
parent | 7459e5af01fbe3a8e75e73783794b4cdffda34e9 (diff) | |
download | binaryen-9cfdb12d4976e4a9fbf6d902065904ffa48bdbec.tar.gz binaryen-9cfdb12d4976e4a9fbf6d902065904ffa48bdbec.tar.bz2 binaryen-9cfdb12d4976e4a9fbf6d902065904ffa48bdbec.zip |
Merge pull request #187 from WebAssembly/select
Fix select
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index 275cf6a9c..f800e193b 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -688,9 +688,10 @@ class S2WasmBuilder { skipComma(); auto curr = allocator.alloc<Select>(); auto inputs = getInputs(3); - curr->condition = inputs[0]; curr->ifTrue = inputs[1]; curr->ifFalse = inputs[2]; + curr->condition = inputs[0]; + assert(curr->condition->type == i32); curr->type = type; setOutput(curr, assign); }; |