diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-04 17:54:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-04 17:54:19 -0800 |
commit | f81abd08214a17e257d08c24408ff395b919e2dc (patch) | |
tree | 3641f65f129fc2d1851e4d897c112125dca66f03 /src/wasm2asm.h | |
parent | a834d6e9523d65710c09cd61e5d95c1a2a5a8d34 (diff) | |
download | binaryen-f81abd08214a17e257d08c24408ff395b919e2dc.tar.gz binaryen-f81abd08214a17e257d08c24408ff395b919e2dc.tar.bz2 binaryen-f81abd08214a17e257d08c24408ff395b919e2dc.zip |
fix scanwalk and scopedTemp in wasm2asm
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r-- | src/wasm2asm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h index 1c0047c5e..600f3d2ef 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -294,7 +294,7 @@ void Wasm2AsmBuilder::scanFunctionBody(Expression* curr) { } } }; - ExpressionScanner(this).visit(curr); + ExpressionScanner(this).walk(curr); } Ref Wasm2AsmBuilder::processFunctionBody(Expression* curr, IString result) { @@ -312,7 +312,7 @@ Ref Wasm2AsmBuilder::processFunctionBody(Expression* curr, IString result) { // @param possible if provided, this is a variable we can use as our temp. it has already been // allocated in a higher scope, and we can just assign to it as our result is // going there anyhow. - ScopedTemp(WasmType type, Wasm2AsmBuilder* parent, IString possible = IString()) : parent(parent), type(type) { + ScopedTemp(WasmType type, Wasm2AsmBuilder* parent, IString possible = NO_RESULT) : parent(parent), type(type) { assert(possible != EXPRESSION_RESULT); if (possible == NO_RESULT) { temp = parent->getTemp(type); |