diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 11:23:36 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 11:23:36 -0800 |
commit | 9bf5aa7c0727e6e287f17fa89705a1af65c4fc87 (patch) | |
tree | 90970e884808549a555205b32353c1c82c4ea0e2 /src/wasm-binary.h | |
parent | ded8b2557912c77322d20c6feb7fd170f8c0d220 (diff) | |
download | binaryen-9bf5aa7c0727e6e287f17fa89705a1af65c4fc87.tar.gz binaryen-9bf5aa7c0727e6e287f17fa89705a1af65c4fc87.tar.bz2 binaryen-9bf5aa7c0727e6e287f17fa89705a1af65c4fc87.zip |
fix recursion debugging
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 7c739ba6a..956cf0ee7 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1188,12 +1188,12 @@ public: case BinaryConsts::Unreachable: visitUnreachable((curr = allocator.alloc<Unreachable>())->cast<Unreachable>()); break; default: { // otherwise, the code is a subcode TODO: optimize - if (maybeVisit<Binary>(curr, code)) return; - if (maybeVisit<Unary>(curr, code)) return; - if (maybeVisit<Const>(curr, code)) return; - if (maybeVisit<Load>(curr, code)) return; - if (maybeVisit<Store>(curr, code)) return; - if (maybeVisit<Host>(curr, code)) return; + if (maybeVisit<Binary>(curr, code)) break; + if (maybeVisit<Unary>(curr, code)) break; + if (maybeVisit<Const>(curr, code)) break; + if (maybeVisit<Load>(curr, code)) break; + if (maybeVisit<Store>(curr, code)) break; + if (maybeVisit<Host>(curr, code)) break; abort(); } } |