diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-02 17:01:53 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-02 21:04:46 -0700 |
commit | e888c841832895f292e8582c0043c8bf232e5d96 (patch) | |
tree | e69cba00b98fea1a59801feee0cc01abce8ea317 | |
parent | 318746771e7ff11a1223cc5d08433fe5dfeab9db (diff) | |
download | binaryen-e888c841832895f292e8582c0043c8bf232e5d96.tar.gz binaryen-e888c841832895f292e8582c0043c8bf232e5d96.tar.bz2 binaryen-e888c841832895f292e8582c0043c8bf232e5d96.zip |
add a default finalize() so it is valid to call on any node
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index b13011bae..c089d46b9 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -763,7 +763,9 @@ public: WasmType type; // the type of the expression: its *output*, not necessarily its input(s) Expression(Id id) : _id(id), type(none) {} - + + void finalize() {} + template<class T> bool is() { return int(_id) == int(T::SpecificId); |