From f30d9f6cde023b29409f73aba68f472c06c3b11c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 3 Aug 2016 12:12:24 -0700 Subject: loops no longer have an out label and other upstream loop updates --- src/s2wasm.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/s2wasm.h') diff --git a/src/s2wasm.h b/src/s2wasm.h index 5226ceda3..8c04f7891 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -1064,7 +1064,7 @@ class S2WasmBuilder { if (target->is()) { return target->cast()->name; } else { - return target->cast()->in; + return target->cast()->name; } }; // fixups @@ -1099,10 +1099,9 @@ class S2WasmBuilder { } else if (match("loop")) { auto curr = allocator->alloc(); addToBlock(curr); - curr->in = getNextLabel(); - curr->out = getNextLabel(); + curr->name = getNextLabel(); auto block = allocator->alloc(); - block->name = curr->out; // temporary, fake - this way, on bstack we have the right label at the right offset for a br + block->name = getNextLabel(); curr->body = block; loopBlocks.push_back(block); bstack.push_back(block); -- cgit v1.2.3