diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-07-16 14:45:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-16 14:45:38 -0700 |
commit | ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1 (patch) | |
tree | 1e8f8d09473e0a140c570672cf1d54fc260c0baa | |
parent | 184cc11cee2a65d30c7696eb3284e132099e4acb (diff) | |
download | binaryen-ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1.tar.gz binaryen-ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1.tar.bz2 binaryen-ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1.zip |
fix unreachable constructor without allocator (#643)
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h index 40728de50..2d007be65 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1318,10 +1318,10 @@ public: class Unreachable : public SpecificExpression<Expression::UnreachableId> { public: - Unreachable() {} - Unreachable(MixedArena& allocator) { + Unreachable() { type = unreachable; } + Unreachable(MixedArena& allocator) : Unreachable() {} }; // Globals |