diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index 402a6167f5a7..c5f7287bc222 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/lib/MC/ELFObjectWriter.cpp @@ -1005,8 +1005,8 @@ void ELFObjectWriter::CreateRelocationSections(MCAssembler &Asm, unsigned Flags = 0; StringRef Group = ""; if (Section.getFlags() & ELF::SHF_GROUP) { - Flags = ELF::SHF_GROUP; - Group = Section.getGroup()->getName(); + Flags = ELF::SHF_GROUP; + Group = Section.getGroup()->getName(); } const MCSectionELF *RelaSection =