Skip to content

Commit af3707c

Browse files
committed
[MC] Avoid C++17 structured bindings
release/15.x uses C++14 and structured bindings trigger warnings in Clang/GCC and errors in MSVC.
1 parent 64260fe commit af3707c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/MC/MCContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,8 @@ void MCContext::addDebugPrefixMapEntry(const std::string &From,
856856
}
857857

858858
void MCContext::remapDebugPath(SmallVectorImpl<char> &Path) {
859-
for (const auto &[From, To] : DebugPrefixMap)
860-
if (llvm::sys::path::replace_path_prefix(Path, From, To))
859+
for (const auto &V : DebugPrefixMap)
860+
if (llvm::sys::path::replace_path_prefix(Path, V.first, V.second))
861861
break;
862862
}
863863

0 commit comments

Comments
 (0)