summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-03-07 17:03:23 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-03-07 17:03:23 -0800
commit8efa11fbb9ff8cfd8bacc9d16642e13e2bbac9b4 (patch)
tree22050fa4bbdfa87d367030d88f5af3c4f11eb7fd /src/wasm.h
parentb65a994c24e83694f27cb835845b3b281207fc2f (diff)
parenta94f9938701920fe11c4f21a875ed3174ff7e9ba (diff)
downloadbinaryen-8efa11fbb9ff8cfd8bacc9d16642e13e2bbac9b4.tar.gz
binaryen-8efa11fbb9ff8cfd8bacc9d16642e13e2bbac9b4.tar.bz2
binaryen-8efa11fbb9ff8cfd8bacc9d16642e13e2bbac9b4.zip
Merge pull request #224 from WebAssembly/spec-updates
Spec updates
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index ec2cd469e..ba9d7de3d 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -794,6 +794,12 @@ public:
Name name;
ExpressionList list;
+
+ void finalize() {
+ if (list.size() > 0) {
+ type = list.back()->type;
+ }
+ }
};
class If : public Expression {