diff options
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
-rw-r--r-- | src/wasm/wasm-s-parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index 9270a19b0..9dbfc88c2 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -2580,7 +2580,7 @@ Name SExpressionWasmBuilder::getLabel(Element& s, LabelType labelType) { } } -Expression* SExpressionWasmBuilder::makeBreak(Element& s) { +Expression* SExpressionWasmBuilder::makeBreak(Element& s, bool isConditional) { auto ret = allocator.alloc<Break>(); size_t i = 1; ret->name = getLabel(*s[i]); @@ -2588,7 +2588,7 @@ Expression* SExpressionWasmBuilder::makeBreak(Element& s) { if (i == s.size()) { return ret; } - if (elementStartsWith(s, BR_IF)) { + if (isConditional) { if (i + 1 < s.size()) { ret->value = parseExpression(s[i]); i++; |