diff options
Diffstat (limited to 'src/c-writer.cc')
-rw-r--r-- | src/c-writer.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/c-writer.cc b/src/c-writer.cc index 473f0199..635334dd 100644 --- a/src/c-writer.cc +++ b/src/c-writer.cc @@ -1346,9 +1346,8 @@ void CWriter::WriteLocals(const std::vector<std::string>& index_to_name) { void CWriter::WriteStackVarDeclarations() { for (Type type : {Type::I32, Type::I64, Type::F32, Type::F64}) { size_t count = 0; - for (const auto& pair : stack_var_sym_map_) { - Type stp_type = pair.first.second; - const std::string& name = pair.second; + for (const auto& [pair, name] : stack_var_sym_map_) { + Type stp_type = pair.second; if (stp_type == type) { if (count == 0) { |