From 8dc7b982b4556c243e0502e6e230bdd53ddd65ff Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Wed, 1 Jan 2020 17:23:21 +0100 Subject: [NFC] Fixes -Wrange-loop-analysis warnings This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall. Differential Revision: https://reviews.llvm.org/D71857 --- llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp') diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp index eeebb69..02f053b 100644 --- a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp +++ b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp @@ -421,7 +421,7 @@ std::shared_ptr YAMLLinesSubsection::toCodeViewSubsection( for (const auto &LC : Lines.Blocks) { Result->createBlock(LC.FileName); if (Result->hasColumnInfo()) { - for (const auto &Item : zip(LC.Lines, LC.Columns)) { + for (auto Item : zip(LC.Lines, LC.Columns)) { auto &L = std::get<0>(Item); auto &C = std::get<1>(Item); uint32_t LE = L.LineStart + L.EndDelta; -- cgit v1.1