diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/wasm.h b/src/wasm.h index c4dbd2f3f..77bf75545 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -543,7 +543,7 @@ public: Id _id; // the type of the expression: its *output*, not necessarily its input(s) - Type type = none; + Type type = Type::none; Expression(Id id) : _id(id) {} @@ -655,7 +655,7 @@ public: class Break : public SpecificExpression<Expression::BreakId> { public: Break() : value(nullptr), condition(nullptr) {} - Break(MixedArena& allocator) : Break() { type = unreachable; } + Break(MixedArena& allocator) : Break() { type = Type::unreachable; } Name name; Expression* value; @@ -666,7 +666,9 @@ public: class Switch : public SpecificExpression<Expression::SwitchId> { public: - Switch(MixedArena& allocator) : targets(allocator) { type = unreachable; } + Switch(MixedArena& allocator) : targets(allocator) { + type = Type::unreachable; + } ArenaVector<Name> targets; Name default_; @@ -1028,7 +1030,7 @@ public: class Return : public SpecificExpression<Expression::ReturnId> { public: - Return() { type = unreachable; } + Return() { type = Type::unreachable; } Return(MixedArena& allocator) : Return() {} Expression* value = nullptr; @@ -1047,7 +1049,7 @@ public: class Unreachable : public SpecificExpression<Expression::UnreachableId> { public: - Unreachable() { type = unreachable; } + Unreachable() { type = Type::unreachable; } Unreachable(MixedArena& allocator) : Unreachable() {} }; @@ -1134,7 +1136,7 @@ public: class BrOnExn : public SpecificExpression<Expression::BrOnExnId> { public: - BrOnExn() { type = unreachable; } + BrOnExn() { type = Type::unreachable; } BrOnExn(MixedArena& allocator) : BrOnExn() {} Name name; |