From 9f8a400879dcd35853e6c42bd1bc53c8c3fa51eb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 30 Oct 2015 22:27:58 -0700 Subject: getlocal/setlocal in interpreter --- src/asm2wasm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/asm2wasm.cpp') diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp index 68717e67e..a327fb274 100644 --- a/src/asm2wasm.cpp +++ b/src/asm2wasm.cpp @@ -576,7 +576,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { IString name = ast[2][1]->getIString(); if (functionVariables.has(name)) { auto ret = allocator.alloc(); - ret->id = ast[2][1]->getIString(); + ret->name = ast[2][1]->getIString(); ret->value = process(ast[3]); ret->type = ret->value->type; return ret; @@ -655,7 +655,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { if (functionVariables.has(name)) { // var in scope auto ret = allocator.alloc(); - ret->id = name; + ret->name = name; ret->type = asmToWasmType(asmData.getType(name)); return ret; } -- cgit v1.2.3