diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp index fc234581a45a70..a449b18143f92b 100644 --- a/llvm/lib/ObjectYAML/ELFEmitter.cpp +++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp @@ -1665,13 +1665,13 @@ void ELFState::writeSectionContent(Elf_Shdr &SHeader, CBA.write((const char *)&VerDef, sizeof(Elf_Verdef)); for (size_t J = 0; J < E.VerNames.size(); ++J, ++AuxCnt) { - Elf_Verdaux VernAux; - VernAux.vda_name = DotDynstr.getOffset(E.VerNames[J]); + Elf_Verdaux VerdAux; + VerdAux.vda_name = DotDynstr.getOffset(E.VerNames[J]); if (J == E.VerNames.size() - 1) - VernAux.vda_next = 0; + VerdAux.vda_next = 0; else - VernAux.vda_next = sizeof(Elf_Verdaux); - CBA.write((const char *)&VernAux, sizeof(Elf_Verdaux)); + VerdAux.vda_next = sizeof(Elf_Verdaux); + CBA.write((const char *)&VerdAux, sizeof(Elf_Verdaux)); } }