From f81abd08214a17e257d08c24408ff395b919e2dc Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 4 Dec 2015 17:54:19 -0800 Subject: fix scanwalk and scopedTemp in wasm2asm --- src/wasm2asm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3