diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h index ee575e3527673..0e913fb1ee669 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h @@ -211,8 +211,8 @@ template <> struct CustomMappingTraits { } static void output(IO &YamlIO, BBNumberMap &SrcToUnwindDest) { - for (auto KV : SrcToUnwindDest) - YamlIO.mapRequired(std::to_string(KV.first).c_str(), KV.second); + for (auto [Src, Dest] : SrcToUnwindDest) + YamlIO.mapRequired(std::to_string(Src), Dest); } };