We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab35a43 commit 66dc267Copy full SHA for 66dc267
src/wasm/wasm-binary.cpp
@@ -1806,8 +1806,7 @@ void WasmBinaryBuilder::visitBlock(Block* curr) {
1806
curr->name = getNextLabel();
1807
breakStack.push_back({curr->name, curr->type != none});
1808
stack.push_back(curr);
1809
- auto peek = input[pos];
1810
- if (peek == BinaryConsts::Block) {
+ if (more() && input[pos] == BinaryConsts::Block) {
1811
// a recursion
1812
readNextDebugLocation();
1813
curr = allocator.alloc<Block>();
0 commit comments