From: Stuart Hastings Date: Mon, 21 Feb 2011 21:07:07 +0000 (+0000) Subject: End the line if we return early. Radar 9012638. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=37c79c59420763ab78aaaef0b54ac6a702325c3e;p=oota-llvm.git End the line if we return early. Radar 9012638. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126141 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCSectionMachO.cpp b/lib/MC/MCSectionMachO.cpp index 2cfecb2d8be..577e93aed6b 100644 --- a/lib/MC/MCSectionMachO.cpp +++ b/lib/MC/MCSectionMachO.cpp @@ -108,9 +108,11 @@ void MCSectionMachO::PrintSwitchToSection(const MCAsmInfo &MAI, if (SectionTypeDescriptors[SectionType].AssemblerName) { OS << ','; OS << SectionTypeDescriptors[SectionType].AssemblerName; - } else + } else { // If we have no name for the attribute, stop here. + OS << '\n'; return; + } // If we don't have any attributes, we're done. unsigned SectionAttrs = TAA & MCSectionMachO::SECTION_ATTRIBUTES;