summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index cdda00b05..a85899c6a 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -317,7 +317,7 @@ private:
// function parsing state
Function *currFunction = nullptr;
std::map<Name, WasmType> currLocalTypes;
- size_t localIndex; // params and locals
+ size_t localIndex; // params and vars
size_t otherIndex;
std::vector<Name> labelStack;
@@ -379,7 +379,7 @@ private:
if (id == PARAM) {
func->params.emplace_back(name, type);
} else {
- func->locals.emplace_back(name, type);
+ func->vars.emplace_back(name, type);
}
localIndex++;
currLocalTypes[name] = type;
@@ -709,7 +709,7 @@ private:
if (i < numParams) {
return currFunction->params[i].name;
} else {
- return currFunction->locals[i - currFunction->params.size()].name;
+ return currFunction->vars[i - currFunction->params.size()].name;
}
}