summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index bc4a225df..3f5b799fe 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -695,8 +695,13 @@ public:
Expression* readExpression();
void readGlobals();
- struct BreakTarget { Name name; int arity;};
+ struct BreakTarget {
+ Name name;
+ int arity;
+ BreakTarget(Name name, int arity) : name(name), arity(arity) {}
+ };
std::vector<BreakTarget> breakStack;
+ bool breaksToReturn; // whether a break is done to the function scope, which is in effect a return
std::vector<Expression*> expressionStack;