summaryrefslogtreecommitdiff
path: root/src/asm2wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-30 22:27:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-30 22:27:58 -0700
commit9f8a400879dcd35853e6c42bd1bc53c8c3fa51eb (patch)
treecc5387231e5f12df389ffabf51067e8deef2d9a5 /src/asm2wasm.cpp
parent3067079eec5759fbbbf81872b32a9ae4a2dd99fc (diff)
downloadbinaryen-9f8a400879dcd35853e6c42bd1bc53c8c3fa51eb.tar.gz
binaryen-9f8a400879dcd35853e6c42bd1bc53c8c3fa51eb.tar.bz2
binaryen-9f8a400879dcd35853e6c42bd1bc53c8c3fa51eb.zip
getlocal/setlocal in interpreter
Diffstat (limited to 'src/asm2wasm.cpp')
-rw-r--r--src/asm2wasm.cpp4
1 files changed, 2 insertions, 2 deletions
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<SetLocal>();
- 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<GetLocal>();
- ret->id = name;
+ ret->name = name;
ret->type = asmToWasmType(asmData.getType(name));
return ret;
}