diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-03 12:12:24 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:54:53 -0700 |
commit | f30d9f6cde023b29409f73aba68f472c06c3b11c (patch) | |
tree | 79f6744bdc406bb0b076fe0f4a1ec52ee5f575eb /src/wasm-interpreter.h | |
parent | 72616971b2a35cbc37ea974e47c870556ef8ef4d (diff) | |
download | binaryen-f30d9f6cde023b29409f73aba68f472c06c3b11c.tar.gz binaryen-f30d9f6cde023b29409f73aba68f472c06c3b11c.tar.bz2 binaryen-f30d9f6cde023b29409f73aba68f472c06c3b11c.zip |
loops no longer have an out label and other upstream loop updates
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r-- | src/wasm-interpreter.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 77cbd8aab..247d34500 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -170,8 +170,7 @@ public: while (1) { Flow flow = visit(curr->body); if (flow.breaking()) { - if (flow.breakTo == curr->in) continue; // lol - flow.clearIf(curr->out); + if (flow.breakTo == curr->name) continue; // lol } return flow; // loop does not loop automatically, only continue achieves that } |