summaryrefslogtreecommitdiff
path: root/src/wast-parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wast-parser.cc')
-rw-r--r--src/wast-parser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc
index 96e7d336..8264522b 100644
--- a/src/wast-parser.cc
+++ b/src/wast-parser.cc
@@ -496,8 +496,8 @@ Result ResolveFuncTypes(Module* module, Errors* errors) {
// local variables share the same index space, we need to increment the
// local indexes bound to a given name by the number of parameters in
// the function.
- for (auto& pair : func->bindings) {
- pair.second.index += func->GetNumParams();
+ for (auto& [name, binding] : func->bindings) {
+ binding.index += func->GetNumParams();
}
}