diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-01 16:22:09 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-01 16:22:09 -0800 |
commit | 5ad0538c67dcc27c28fb99e058995de110550de1 (patch) | |
tree | f7c6673213af2cf272dc5f311f2d2c74cd3f6659 | |
parent | 5fe20a3b2fabd4f0f2497ff01040b7a951cf0adb (diff) | |
download | binaryen-5ad0538c67dcc27c28fb99e058995de110550de1.tar.gz binaryen-5ad0538c67dcc27c28fb99e058995de110550de1.tar.bz2 binaryen-5ad0538c67dcc27c28fb99e058995de110550de1.zip |
don't set auto-init fields
-rw-r--r-- | src/asm2wasm.h | 5 |
1 files changed, 0 insertions, 5 deletions
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<Break>(); 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<Break>(); 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<Break>(); breakOut->name = in; - breakOut->value = nullptr; If *condition = allocator.alloc<If>(); condition->condition = process(ast[1]); condition->ifTrue = breakOut; - condition->ifFalse = nullptr; auto body = allocator.alloc<Block>(); 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<Break>(); breakOut->name = out; - breakOut->value = nullptr; If *condition = allocator.alloc<If>(); condition->condition = process(ast[1]); condition->ifTrue = allocator.alloc<Nop>(); |