summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index e2a880e51..64dc6a454 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -633,9 +633,9 @@ private:
Expression* makeSelect(Element& s, WasmType type) {
auto ret = allocator.alloc<Select>();
- ret->condition = parseExpression(s[1]);
- ret->ifTrue = parseExpression(s[2]);
- ret->ifFalse = parseExpression(s[3]);
+ ret->ifTrue = parseExpression(s[1]);
+ ret->ifFalse = parseExpression(s[2]);
+ ret->condition = parseExpression(s[3]);
ret->type = type;
return ret;
}