From 5ad0538c67dcc27c28fb99e058995de110550de1 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 1 Nov 2015 16:22:09 -0800 Subject: don't set auto-init fields --- src/asm2wasm.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 448cf2f0f..0ac8ac83e 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -844,13 +844,11 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { auto ret = allocator.alloc(); assert(breakStack.size() > 0); ret->name = !!ast[1] ? getBreakLabelName(ast[1]->getIString()) : breakStack.back(); - ret->value = nullptr; return ret; } else if (what == CONTINUE) { auto ret = allocator.alloc(); assert(continueStack.size() > 0); ret->name = !!ast[1] ? getContinueLabelName(ast[1]->getIString()) : continueStack.back(); - ret->value = nullptr; return ret; } else if (what == WHILE) { bool forever = ast[1][0] == NUM && ast[1][1]->getInteger() == 1; @@ -873,11 +871,9 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { } else { Break *breakOut = allocator.alloc(); breakOut->name = in; - breakOut->value = nullptr; If *condition = allocator.alloc(); condition->condition = process(ast[1]); condition->ifTrue = breakOut; - condition->ifFalse = nullptr; auto body = allocator.alloc(); body->list.push_back(condition); body->list.push_back(process(ast[2])); @@ -925,7 +921,6 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { breakStack.pop_back(); Break *breakOut = allocator.alloc(); breakOut->name = out; - breakOut->value = nullptr; If *condition = allocator.alloc(); condition->condition = process(ast[1]); condition->ifTrue = allocator.alloc(); -- cgit v1.2.3