diff options
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 55a97743f..9724bc93d 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -855,9 +855,15 @@ public: std::vector<Expression*> expressionStack; + bool definitelyUnreachable; // set when we know code is definitely unreachable. this helps parse + // stacky wasm code, which can be unsuitable for our IR when unreachable + BinaryConsts::ASTNodes lastSeparator = BinaryConsts::End; + // process a block-type scope, until an end or else marker, or the end of the function void processExpressions(); + void skipUnreachableCode(); + Expression* popExpression(); Expression* popNonVoidExpression(); |