From dac37fb38d01aac823fcc10b446536500450695f Mon Sep 17 00:00:00 2001 From: George Rimar Date: Wed, 20 Feb 2019 14:01:02 +0000 Subject: [PATCH] [yaml2elf] - Rename a variable. NFC. Was suggested during review of D58441. llvm-svn: 354463 --- llvm/tools/yaml2obj/yaml2elf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp index 0aaeb0b5c61f..4e51744991e0 100644 --- a/llvm/tools/yaml2obj/yaml2elf.cpp +++ b/llvm/tools/yaml2obj/yaml2elf.cpp @@ -577,8 +577,8 @@ bool ELFState::writeSectionContent(Elf_Shdr &SHeader, ContiguousBlobAccumulator &CBA) { raw_ostream &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); - for (uint16_t V : Section.Entries) - support::endian::write(OS, V, ELFT::TargetEndianness); + for (uint16_t Version : Section.Entries) + support::endian::write(OS, Version, ELFT::TargetEndianness); SHeader.sh_entsize = 2; SHeader.sh_size = Section.Entries.size() * SHeader.sh_entsize;