From 9bf5aa7c0727e6e287f17fa89705a1af65c4fc87 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 14 Jan 2016 11:23:36 -0800 Subject: fix recursion debugging --- src/wasm-binary.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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())->cast()); break; default: { // otherwise, the code is a subcode TODO: optimize - if (maybeVisit(curr, code)) return; - if (maybeVisit(curr, code)) return; - if (maybeVisit(curr, code)) return; - if (maybeVisit(curr, code)) return; - if (maybeVisit(curr, code)) return; - if (maybeVisit(curr, code)) return; + if (maybeVisit(curr, code)) break; + if (maybeVisit(curr, code)) break; + if (maybeVisit(curr, code)) break; + if (maybeVisit(curr, code)) break; + if (maybeVisit(curr, code)) break; + if (maybeVisit(curr, code)) break; abort(); } } -- cgit v1.2.3