diff options
author | Michael Bebenita <mbebenita@gmail.com> | 2016-01-14 16:44:42 -0800 |
---|---|---|
committer | Michael Bebenita <mbebenita@gmail.com> | 2016-01-14 16:44:42 -0800 |
commit | 4c0f7e27bfff16daf610463c326f3a11b36d7e6e (patch) | |
tree | 963250376326279551524d2e2f5c256d0f88a744 /src/asm2wasm.h | |
parent | e165020f87f807179d27203195843c88fb8afe55 (diff) | |
download | binaryen-4c0f7e27bfff16daf610463c326f3a11b36d7e6e.tar.gz binaryen-4c0f7e27bfff16daf610463c326f3a11b36d7e6e.tar.bz2 binaryen-4c0f7e27bfff16daf610463c326f3a11b36d7e6e.zip |
Some cleanup.
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index b968b8596..7fa252c8c 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -1489,7 +1489,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { void Asm2WasmBuilder::optimize() { // Optimization passes. Note: no effort is made to free nodes that are no longer held on to. - struct BlockBreakOptimizer : public WasmWalker<BlockBreakOptimizer, void> { + struct BlockBreakOptimizer : public WasmWalker<BlockBreakOptimizer> { void visitBlock(Block *curr) { // if the block ends in a break on this very block, then just put the value there Break *last = curr->list[curr->list.size()-1]->dyn_cast<Break>(); @@ -1504,7 +1504,7 @@ void Asm2WasmBuilder::optimize() { } // we might be broken to, but maybe there isn't a break (and we may have removed it, leading to this) - struct BreakSeeker : public WasmWalker<BreakSeeker, void> { + struct BreakSeeker : public WasmWalker<BreakSeeker> { IString target; // look for this one size_t found; |