summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
authorJF Bastien <github@jfbastien.com>2016-02-05 14:14:10 +0100
committerJF Bastien <github@jfbastien.com>2016-02-05 14:14:10 +0100
commit9cfdb12d4976e4a9fbf6d902065904ffa48bdbec (patch)
treeaae2c28eb1cc465a4582208d6c713584a51a1bcf /src/asm2wasm.h
parent8f67b6e27a38c93fbca7f3c44a88889b3896952f (diff)
parent7459e5af01fbe3a8e75e73783794b4cdffda34e9 (diff)
downloadbinaryen-9cfdb12d4976e4a9fbf6d902065904ffa48bdbec.tar.gz
binaryen-9cfdb12d4976e4a9fbf6d902065904ffa48bdbec.tar.bz2
binaryen-9cfdb12d4976e4a9fbf6d902065904ffa48bdbec.zip
Merge pull request #187 from WebAssembly/select
Fix select
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index d56bf0cce..22db2636a 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -1109,9 +1109,9 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
flip->right = get();
flip->type = i32;
auto select = allocator.alloc<Select>();
- select->condition = isNegative;
select->ifTrue = flip;
select->ifFalse = get();
+ select->condition = isNegative;
select->type = i32;
block->list.push_back(select);
block->type = i32;