diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 37bae640352e6..99c74f6f5c978 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -626,9 +626,6 @@ MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type, const MCSymbolELF *GroupSym, bool IsComdat, unsigned UniqueID, const MCSymbolELF *LinkedToSym) { - StringRef Group = ""; - if (GroupSym) - Group = GroupSym->getName(); assert(!(LinkedToSym && LinkedToSym->getName().empty())); // Sections are differentiated by the quadruple (section_name, group_name,