diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-binary.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index ad6abf5af..795e89d98 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -848,11 +848,10 @@ public: } void visitLoop(Loop *curr) { if (debug) std::cerr << "zz node: Loop" << std::endl; - // TODO: optimize, as we usually have a block as our singleton child o << int8_t(BinaryConsts::Loop); breakStack.push_back(curr->out); breakStack.push_back(curr->in); - recurse(curr->body); + recursePossibleBlockContents(curr->body); breakStack.pop_back(); breakStack.pop_back(); o << int8_t(BinaryConsts::End); |