diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 29597088a212e..062246f9c7ee5 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -856,8 +856,8 @@ void MCContext::addDebugPrefixMapEntry(const std::string &From, } void MCContext::remapDebugPath(SmallVectorImpl &Path) { - for (const auto &[From, To] : DebugPrefixMap) - if (llvm::sys::path::replace_path_prefix(Path, From, To)) + for (const auto &V : DebugPrefixMap) + if (llvm::sys::path::replace_path_prefix(Path, V.first, V.second)) break; }