summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-07-16 14:45:38 -0700
committerGitHub <noreply@github.com>2016-07-16 14:45:38 -0700
commitce8ee20462a465f00520dbe0dd2aa3e1601f4ca1 (patch)
tree1e8f8d09473e0a140c570672cf1d54fc260c0baa /src
parent184cc11cee2a65d30c7696eb3284e132099e4acb (diff)
downloadbinaryen-ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1.tar.gz
binaryen-ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1.tar.bz2
binaryen-ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1.zip
fix unreachable constructor without allocator (#643)
Diffstat (limited to 'src')
-rw-r--r--src/wasm.h4
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