summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index 1a4b96be4..d3560f689 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -880,7 +880,9 @@ private:
}
auto ret = allocator.alloc<Break>();
ret->name = FAKE_RETURN;
- ret->value = parseExpression(s[1]);
+ if (s.size() >= 2) {
+ ret->value = parseExpression(s[1]);
+ }
return ret;
}