diff options
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index adb9341b0..616e0370b 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -2308,8 +2308,8 @@ void BinaryInstWriter::countScratchLocals() { scratchLocals[extract->type] = 0; } } - for (auto t : scratchLocals) { - noteLocalType(t.first); + for (auto& [type, _] : scratchLocals) { + noteLocalType(type); } } |